private IQueryable <T> GetEntitiesInternal <T>() where T : class
        {
            System.Data.Entity.DbSet <T> set = context.Set <T>();
            IQueryable <T> queryableSet      = !trackEntities?set.AsNoTracking() : set;

            return(new DataLocalizationQueryable <T>(queryableSet));
        }
예제 #2
0
 public virtual List <T> QueryWhereAsNoTracking(Expression <Func <T, bool> > where)
 {
     return(_dbset.AsNoTracking().Where(where).ToList());
 }