public Repository(ESDatabaseContext context) { //_objectSet = context.CreateObjectSet<T>(); _dbSet = context.Set <T>(); }