Пример #1
0
 public static IEnumerable <KeyValuePair <uint, TField> > FindDocumentsRangeExclusiveInclusive <TDocument, TField>(this IDocumentCollection <TDocument> collection, string fieldName, TField startValue, TField endValue) where TDocument : AbstractDocument, new()where TField : IComparable <TField>
 {
     return(collection.FindDocuments(fieldName, startValue, (TField v) => NullSafeComparer.Compare(v, startValue) > 0 && NullSafeComparer.Compare(v, endValue) <= 0));
 }
Пример #2
0
 public static IEnumerable <KeyValuePair <uint, TField> > FindDocumentsGreaterThanOrEqualTo <TDocument, TField>(this IDocumentCollection <TDocument> collection, string fieldName, TField value) where TDocument : AbstractDocument, new()where TField : IComparable <TField>
 {
     return(collection.FindDocuments(fieldName, value, (TField v) => NullSafeComparer.Compare(v, value) >= 0));
 }