private static void InitializeDb() { Database.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0"); var init = new QBankDbInitializer(); Database.SetInitializer(init); using (var ctx = new QBankContext()) { init.InitializeDatabase(ctx); } }
public AccountRepository(QBankContext context) { _context = context; }
public AccountRepository(QBankContext context) { _context = context; }