public static FilterNode <ClrValue>?AdjustToModel(this FilterNode <ClrValue> filter, DomainId appId) { var result = AdaptionVisitor.AdaptFilter(filter); if (result != null) { result = AdaptIdVisitor.AdaptFilter(result, appId); } return(result); }
public static ClrQuery AdjustToModel(this ClrQuery query, DomainId appId, Schema?schema) { var pathConverter = Path(schema); if (query.Filter != null) { query.Filter = AdaptionVisitor.Adapt(query.Filter, pathConverter, appId); } query.Sort = query.Sort.Select(x => new SortNode(pathConverter(x.Path), x.Order)).ToList(); return(query); }
public static ClrQuery AdjustToModel(this ClrQuery query, DomainId appId) { if (query.Filter != null) { query.Filter = AdaptionVisitor.AdaptFilter(query.Filter, appId); } if (query.Sort != null) { query.Sort = query.Sort.Select(x => new SortNode(MapPath(x.Path), x.Order)).ToList(); } return(query); }
public static FilterNode <ClrValue>?AdjustToModel(this FilterNode <ClrValue> filter, DomainId appId, Schema schema) { var pathConverter = Path(schema); return(AdaptionVisitor.Adapt(filter, pathConverter, appId)); }
public static FilterNode <ClrValue>?AdjustToModel(this FilterNode <ClrValue> filter, DomainId appId) { return(AdaptionVisitor.AdaptFilter(filter, appId)); }