EF6 - Failing to create database in code-first
Posted: Mon 24 Feb 2014 16:59
Hi!
I'am currently evaluating your SQLite provider...
Unfortunately, I am not able to create the SQLite database as following:
The SQLiteConnectionFactory I've adopted from one of your blog posts but the provider does not return a ManifestToken due to that it does not actually try to create but to connect to the database specified in the connection string...
I'am currently evaluating your SQLite provider...
Unfortunately, I am not able to create the SQLite database as following:
Code: Select all
SQLiteConnectionStringBuilder builder = new SQLiteConnectionStringBuilder();
builder.DataSource = "D:\\test.db";
// Does not have any effect...
builder.FailIfMissing = false;
var connection = builder.ToString();
DataContext context = new DataContext(connection);
System.Data.Entity.Database.DefaultConnectionFactory = new SQLiteConnectionFactory();
context.Database.Create();