private QueryInfo( QuerySortProperty <T>[] sortProperties = null, QueryFilter[] filters = null, QueryPaging paging = null, string[] includes = null) : base( sortProperties?.Cast <QuerySortProperty>().ToArray(), filters, paging, includes) { }
public QueryInfo( QuerySortProperty <T>[] sortProperties = null, Expression <Func <T, bool> > filterExpression = null, QueryPaging paging = null, Expression <Func <T, object> >[] includes = null) : this( sortProperties, filterExpression == null ? null : QueryFilter.Parse(filterExpression), paging, includes?.Select(include => EncodeMemberExpression(include.Body, include.Parameters[0])).ToArray()) { }