public PlanifierUnitOfWork(PlanifierDatabaseContext dbContext) { if (dbContext == null) { throw new ArgumentException($"{nameof(dbContext)} can not be null"); } _dbContext = dbContext; }
public static PlanifierDatabaseContext CreateContext() { if (_db == null) { lock (_lock) { if (_db == null) { _db = new PlanifierDatabaseContext(); } } } return(_db); }
public UserRepository(PlanifierDatabaseContext databaseContext) : base(databaseContext) { }
public PlanifierRepository(PlanifierDatabaseContext databaseContext) { _dbContext = databaseContext; //PlanifierRepositoryBase.CreateContext(); _dbSet = _dbContext.Set <T>(); }