Exemplo n.º 1
0
 protected override QueryableSortOperation HandleOperation(
     QueryableSortContext context,
     QueryableFieldSelector fieldSelector,
     ISortField field,
     ISortEnumValue?sortEnumValue)
 {
     return(DescendingSortOperation.From(fieldSelector));
 }
Exemplo n.º 2
0
 public QueryableSortContext(
     ISortInputType initialType,
     bool inMemory)
     : base(initialType)
 {
     InMemory     = inMemory;
     RuntimeTypes = new Stack <IExtendedType>();
     RuntimeTypes.Push(initialType.EntityType);
     Instance.Push(QueryableFieldSelector.New(initialType.EntityType.Source));
 }
 protected QueryableSortOperation(QueryableFieldSelector fieldSelector)
 {
     Selector            = fieldSelector.Selector;
     ParameterExpression = fieldSelector.ParameterExpression;
 }
Exemplo n.º 4
0
 public static DescendingSortOperation From(QueryableFieldSelector selector) =>
 new DescendingSortOperation(selector);
Exemplo n.º 5
0
 protected DescendingSortOperation(QueryableFieldSelector fieldSelector)
     : base(fieldSelector)
 {
 }
 protected abstract QueryableSortOperation HandleOperation(
     QueryableSortContext context,
     QueryableFieldSelector fieldSelector,
     ISortField field,
     ISortEnumValue?sortEnumValue);