From mcp2004 at mail.ru Sat Jun 15 16:55:58 2013 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sun, 16 Jun 2013 01:55:58 +0400 Subject: [dba-VB] =?utf-8?q?Access_MS_Access_databases_a_la=27_ADO=2ENET_E?= =?utf-8?b?Ri4uLg==?= Message-ID: <1371333358.469299979@f224.mail.ru> Hi All -- If you ever wanted to process MS Access Databases using similar to ADO.NET EF/LINQ approach here is an open source project, which could help: https://github.com/jamietre/IQMap I have run a few selection tests using?MSAccessDataStorageController which I have quickly made from available in the source project MSSQLDataStorageController and my tests worked OK, e.g: string fullPath = @"E:\Projects\Third-Party Sources\IQMap-master\Databases\TestAnimals.mdb"; // my test mdb string connectionString = string.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}", fullPath); IQ.Config.DefaultConnectionString = connectionString; IQ.Config.DataStorageController = new MSAccessDataStorageController(); IEnumerable dogs = IQ.From().OrderBy(x => x.Name); foreach (var a in dogs) { System.Console.WriteLine("{0} {1} {2} {3}", a.Id, a.Name, a.Age, a.Weight); } The same author ?- James Treworgy ? ( https://github.com/jamietre ) - has ?published some other useful open source projects as e.g. jQuery port to C# ?( https://github.com/jamietre/CsQuery ) etc. -- ???????????? ?????? From Gustav at cactus.dk Sun Jun 16 02:54:03 2013 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 16 Jun 2013 09:54:03 +0200 Subject: [dba-VB] Access MS Access databases a la' ADO.NET EF... Message-ID: Hi Shamil Thanks. This seems so simple that you might use it in those simple cases where you would refrain from the EF. /gustav >>> Salakhetdinov Shamil 15-06-13 23:55 >>> Hi All -- If you ever wanted to process MS Access Databases using similar to ADO.NET EF/LINQ approach here is an open source project, which could help: https://github.com/jamietre/IQMap I have run a few selection tests using*MSAccessDataStorageController which I have quickly made from available in the source project MSSQLDataStorageController and my tests worked OK, e.g: string fullPath = @"E:\Projects\Third-Party Sources\IQMap-master\Databases\TestAnimals.mdb"; // my test mdb string connectionString = string.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}", fullPath); IQ.Config.DefaultConnectionString = connectionString; IQ.Config.DataStorageController = new MSAccessDataStorageController(); IEnumerable dogs = IQ.From().OrderBy(x => x.Name); foreach (var a in dogs) { System.Console.WriteLine("{0} {1} {2} {3}", a.Id, a.Name, a.Age, a.Weight); } The same author *- James Treworgy * ( https://github.com/jamietre ) - has *published some other useful open source projects as e.g. jQuery port to C# *( https://github.com/jamietre/CsQuery ) etc. -- ???????????? ??????