public UnitOfWorkFactory(IGoodWillEntitiesContext context)
 {
     _context = context;
 }
 public UsersRepository(IGoodWillEntitiesContext context) : base(context)
 {
     _context = context;
     _dbSet   = context.Set <Users>();
 }
Ejemplo n.º 3
0
 public FakeGenericRepository(IGoodWillEntitiesContext context) : base(context)
 {
 }
Ejemplo n.º 4
0
 public UnitOfWork(GoodWillDbContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public UnitOfWork(IGoodWillEntitiesContext context)
 {
     _context  = context;
     _provider = new RepositoryProvider(context, new RepositoryFactory());
 }
Ejemplo n.º 6
0
 public UnitOfWork()
 {
     _context  = new GoodWillDbContext();
     _provider = new RepositoryProvider(_context, new RepositoryFactory());
 }
 public RepositoryProvider(IGoodWillEntitiesContext context, RepositoryFactory factory)
 {
     _context      = context;
     _factory      = factory;
     _repositories = new Dictionary <Type, object>();
 }
Ejemplo n.º 8
0
 public GenericRepository(IGoodWillEntitiesContext context)
 {
     this._context = context;
     _entities     = context.Set <T>();
 }