Beispiel #1
0
 static void Main(string[] args)
 {
     using (SalesDatabaseContext context = new SalesDatabaseContext())
     {
         context.Database.EnsureDeleted();
         context.Database.EnsureCreated();
     }
 }
Beispiel #2
0
 public SalesController(SalesDatabaseContext context)
 {
     _context = context;
 }
 public CustomersController(SalesDatabaseContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public ProductsController(SalesDatabaseContext context)
 {
     _context = context;
 }