ObjectContext ConnectionString Sqlite
Found it =)
if you use the EntityConnectionStringBuilder
to specify the Metadata
and the Provider
and use the SqlConnectionStringBuilder
to 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;