Esempio n. 1
0
 private QueryInfo(
     QuerySortProperty <T>[] sortProperties = null,
     QueryFilter[] filters = null,
     QueryPaging paging    = null,
     string[] includes     = null)
     : base(
         sortProperties?.Cast <QuerySortProperty>().ToArray(),
         filters,
         paging,
         includes)
 {
 }
Esempio n. 2
0
 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())
 {
 }