Пример #1
0
        private void ConfigureEntityFramework()
        {
            Database.SetInitializer(new CreateDatabaseIfNotExists<MyAppContext>());

            var context = new MyAppContext();
            context.Database.CreateIfNotExists();
        }
 public ListEmployeesOlderThanCommand(MyAppContext context, Mapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
Пример #3
0
 public ProjectRepository(MyAppContext context) : base(context)
 {
     this.Context = context;
 }
Пример #4
0
 public SetManagerCommand(MyAppContext context, Mapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public ProjectMemberRepository(MyAppContext context) : base(context)
 {
 }
Пример #6
0
 public EmployeeRepo(MyAppContext appContext) : base(appContext)
 {
     _AppContext = appContext;
 }
 public SetManagerCommand(MyAppContext context)
 {
     this.context = context;
 }
 public SetAddressCommand(MyAppContext context, Mapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public GaleriaGirlsAudioRepository(MyAppContext _db)
 {
     db = _db;
 }
Пример #10
0
 public SetBirthdayCommand(MyAppContext context, Mapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
Пример #11
0
 public BlogController(MyAppContext context)
 {
     _context = context;
 }
 public EmployeePersonalInfoCommand(MyAppContext context)
 {
     this.context = context;
 }
 public MyHtmlModelRepository(MyAppContext context) : base(context)
 {
 }
Пример #14
0
 public FormLibrarian(MyAppContext myAppContext)
 {
     this.myAppContext = myAppContext;
     InitializeComponent();
 }
Пример #15
0
 public MemoryManager(MyAppContext c, ILogger <MemoryManager> logger)
 {
     ctx     = c;
     _logger = logger;
 }
Пример #16
0
 public SetBirthdayCommand(MyAppContext context)
 {
     this.context = context;
 }
Пример #17
0
 public AdminController(UserManager <AppUser> userManager, RoleManager <AppRole> roleManager, IMapper mapper, MyAppContext appDbContext)
 {
     _userManager  = userManager;
     _roleManager  = roleManager;
     _mapper       = mapper;
     _appDbContext = appDbContext;
 }
Пример #18
0
 public BookController(MyAppContext context)
 {
     _context = context;
 }
Пример #19
0
 public TeacherRepository(MyAppContext context)
 {
     _context = context;
 }
 public GenericRepository(MyAppContext dbContext)
 {
     this._dbContext = dbContext;
 }
Пример #21
0
 public RoleRepository(MyAppContext context) : base(context)
 {
 }
 public ChangePasswordRepository(MyAppContext _db)
 {
     db = _db;
 }
Пример #23
0
 public PlayerRepository(MyAppContext context)
 {
     _context = context;
 }
 public Handler(MyAppContext context, ILogger <Handler> logger)
 {
     this.context = context;
     this.logger  = logger;
 }
 public EmployeePersonalInfoCommand(MyAppContext context, Mapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Пример #26
0
 public ManagerInfoCommand(MyAppContext context, Mapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Пример #27
0
 public TeamRepository(MyAppContext myAppContext) : base(myAppContext)
 {
 }
Пример #28
0
 public ThemeMarkRepository(MyAppContext context) : base(context)
 {
 }
Пример #29
0
 public MockUser(MyAppContext context)
 {
     _context = context;
 }
 public AddEmployeeCommand(MyAppContext context, Mapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
Пример #31
0
 public UserController(MyAppContext context)
 {
     this.context = context;
 }