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 } }; }
public SqlPolik(WebOmsContext context) { _context = context; }
public HomeController(WebOmsContext context) { db = context; }