public GenericRepository(DataEntities context) { this.Context = context; this.DbSet = context.Set <TEntity>(); }
public UnitOfWork() { _context = new DataEntities(); }