Example #1
0
 public MaintenanceController()
 {
     dbContext             = new MaintenanceDbContext();
     tramDbContext         = new TramDBContext();
     onderhoudsTypeContext = new OnderhoudsTypeContext();
     employeeRepo          = new EmployeeRepo(new EmployeeDBContext());
 }
Example #2
0
        } // DatabaseContext

        // асинхронная инициализация БД
        public async void Initialize()
        {
            Database.SetInitializer(new MaintenanceDbInit());
            _db = new MaintenanceDbContext();
            _db.Database.Initialize(false);

            await Task.Run(SetCountersData);

            _veiwModel.RefreshData();
        }
Example #3
0
 public RemovalInstallationFormsController(MaintenanceDbContext context)
 {
     _context = context;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="context"></param>
 public MaintenanceDbRepository(MaintenanceDbContext context)
 {
     this.context = context;
 }
Example #5
0
 public NewOrderFormsController(MaintenanceDbContext context)
 {
     _context = context;
 }
Example #6
0
        // temp data will display the error message or success message only one time
        //[TempData]
        //public string StatusMessage { get; set; }

        public AircraftController(MaintenanceDbContext context)
        {
            _context = context;
        }
 public DiscrepancyReportCsController(MaintenanceDbContext context)
 {
     _context = context;
 }