public UnitOfWork() { _context = new excEntities(); }
/// <summary> /// Public Constructor,initializes privately declared local variables. /// </summary> /// <param name="context"></param> public GenericRepository(excEntities context) { this.Context = context; this.DbSet = context.Set <TEntity>(); }