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