Exemplo n.º 1
0
 public static void Initialize(WebOmsContext context)
 {
     context.Database.EnsureCreated();
     // Look for any products.
     if (context.MedServices.Any())
     {
         return;
     }
     var sections = new List <MedService>()
     {
         new MedService()
         {
             Id      = 2,
             Service = 2001
         }
     };
 }
Exemplo n.º 2
0
 public SqlPolik(WebOmsContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public HomeController(WebOmsContext context)
 {
     db = context;
 }