ObjectContext ConnectionString Sqlite ObjectContext ConnectionString Sqlite sqlite sqlite

ObjectContext ConnectionString Sqlite


Found it =)

if you use the EntityConnectionStringBuilder to specify the Metadataand the Provider and use the SqlConnectionStringBuilderto build the provider connection string and set the DataSource to your DB. You can connect =)

var con = new EntityConnectionStringBuilder()  {    Metadata = @"res://*/Db.TracModel.csdl|res://*/Db.TracModel.ssdl|res://*/Db.TracModel.msl",    Provider = @"System.Data.SQLite",    ProviderConnectionString = new SqlConnectionStringBuilder()      {        DataSource = db,      }.ConnectionString,  };connection = con.ConnectionString;