I'm trying to use the DbfDotNet library (http://dbfdotnet.codeplex.com) and replace my current ADO.NET methods of reading a very large dbf file (350.000+ records). I've tried the existing samples to read my file and file their custom Dataview and I'm very impressed with the speed. In my original code I fill a datatable with the content of the dbf file and use a LINQ query to fill my comboboxes.
I've tried rewriting m LINQ query to use the DbfDotNet table object to fill my combobox but I'm still a novice wit LINQ and can't get it to work.
Could anybody help me out?
This is my current code:
var distinctPostalCodes = (from row in this.fileContent.AsEnumerable() select new { code = row.Field(columnNameCode), name = row.Field(columnNameName) }).OrderBy(x => x.code).Distinct();
Where this.fileContent is my DataTable with address data.