auto increment ID.

model tables are automatically created.
This commit is contained in:
kay.one 2013-03-24 03:09:32 -07:00
commit 7603d8e1ba
8 changed files with 35 additions and 6 deletions

View file

@ -30,7 +30,11 @@ namespace NzbDrone.Core.Datastore
OrmLiteConfig.DialectProvider = new SqliteOrmLiteDialectProvider();
var dbFactory = new OrmLiteConnectionFactory(connectionString);
return dbFactory.Open();
var connection = dbFactory.Open();
Migration.CreateTables(connection);
return connection;
}
private string GetConnectionString(string dbPath)