Exemple #1
0
 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;
 }
Exemple #3
0
 public AccountRepository(QBankContext context)
 {
     _context = context;
 }