Code: Select all
[Devart.Data.Linq.Mapping.Provider(typeof(Devart.Data.SqlServer.Linq.Provider.SqlDataProvider))]
public partial class CennikiDataContext : DataContext
Code: Select all
[Devart.Data.Linq.Mapping.Provider(typeof(Devart.Data.SQLite.Linq.Provider.SQLiteDataProvider))]
public class CennikiDataContextLite : CennikiDataContext
When I try to use CennikiDataContextLite (SQLiteDataProvider) with System.Data.SQLite.SQLiteConnection(the open-source one http://system.data.sqlite.org/index.htm ... index.wiki) i have an exception during creation of DataContext:
Code: Select all
Invalid connection type. Expected Type: System.Data.SQLite.SQLiteConnection, Actual Type: Devart.Data.SQLite.SQLiteConnection