Beispiel #1
0
 public static SortDefinition <MongoContentEntity> OrderBy(OrderByClause clause, Schema schema)
 {
     if (clause.Direction == OrderByDirection.Ascending)
     {
         return(Sort.Ascending(PropertyVisitor.Visit(clause.Expression, schema)));
     }
     else
     {
         return(Sort.Descending(PropertyVisitor.Visit(clause.Expression, schema)));
     }
 }
Beispiel #2
0
 private FieldDefinition <MongoContentEntity, object> BuildFieldDefinition(QueryNode nodeIn)
 {
     return(PropertyVisitor.Visit(nodeIn, schema));
 }