示例#1
0
 public DepartmentsController(PlantManagerContext context, ILogger <DepartmentsController> logger)
 {
     _context = context;
     _logger  = logger;
     if (_context.Departments.Any())
     {
         return;
     }
     PlantSeed.InitData(context);
 }
 public MachinesController(PlantManagerContext context, ILogger <MachinesController> logger)
 {
     _context = context;
     _logger  = logger;
     if (_context.Machines.Any())
     {
         return;
     }
     PlantSeed.InitData(context);
 }
示例#3
0
 public CostCentersController(PlantManagerContext context, ILogger <CostCentersController> logger)
 {
     _context = context;
     _logger  = logger;
     if (_context.CostCenters.Any())
     {
         return;
     }
     PlantSeed.InitData(context);
 }