public List <TEntity> QueryList <TEntity>(Expression <Func <TEntity, bool> > filter) where TEntity : class { SqlGenerator.QueryList(this, filter); return(DbCacheManager.GetEntities(this, filter, () => { return DbHelper.ExecuteList <TEntity>(SqlStatement); })); }
public List <TEntity> QueryList <TEntity>(Expression <Func <TEntity, bool> > filter) where TEntity : class { SqlStatement = filter.ToString(); return(DbCacheManager.GetEntities(this, filter, () => { switch (DataBaseType) { case DataBaseType.MongoDB: return GetCollectionEntity <TEntity>().Find(filter).ToList(); default: break; } return default(List <TEntity>); })); }