public static List <EntityObject> Query(this QueryExpression qe, BaseBLL bll) { return(bll.BaseGetEntities(qe)); }
public static EntityObject Query(this EntityInfo entityInfo, string keyValue, BaseBLL bll) { var qe = QueryExpression.Equal(entityInfo.KeyName, keyValue); qe.QueryType = entityInfo.Type; var data = qe.Query(bll); return(data.FirstOrDefault()); }
public static IQueryable <TEntity> Query <TEntity>(this QueryExpression qe, BaseBLL bll) where TEntity : EntityObject { return(bll.InnerGetEntities <TEntity>(qe)); }