public GenericRepository(IDbContextFactory factory) { if (factory == null) { throw new ArgumentException("IDbContextFactory is null!."); } this._factory = factory; this._context = factory.GetDbContext(); }
public UnitOfWork(IDbContextFactory factory) { if (factory == null) { throw new ArgumentException("IDbContextFactory is null!."); } this._factory = factory; this._context = factory.GetDbContext(); }