Предоставляет методы создания фильтров для поиска документов.
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
public interface IDocumentFilterBuilder
Methods
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит элементы, входящие в указанное множество.
Declaration
object All<TItem>(string arrayProperty, IEnumerable<TItem> items)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
IEnumerable<TItem> |
items |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр логического умножения (AND).
Declaration
object And(IEnumerable<object> filters)
Parameters
Type |
Name |
Description |
IEnumerable<System.Object> |
filters |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр логического умножения (AND).
Declaration
object And(params object[] filters)
Parameters
Type |
Name |
Description |
System.Object[] |
filters |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который равен (==) указанному значению.
Declaration
object AnyEq<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который больше (>) указанного значения.
Declaration
object AnyGt<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который больше или равен (>=) указанному значению.
Declaration
object AnyGte<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, входящий в указанное множество.
Declaration
object AnyIn<TItem>(string arrayProperty, IEnumerable<TItem> items)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
IEnumerable<TItem> |
items |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который меньше (<) указанного значения.
Declaration
object AnyLt<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который меньше или равен (<=) указанному значению.
Declaration
object AnyLte<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, который не равен (!=) указанному значению.
Declaration
object AnyNotEq<TItem>(string arrayProperty, TItem item)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
TItem |
item |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, не входящий в указанное множество.
Declaration
object AnyNotIn<TItem>(string arrayProperty, IEnumerable<TItem> items)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
IEnumerable<TItem> |
items |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа содержит указанную подстроку.
Declaration
object Contains(string property, string value, bool ignoreCase = true)
Parameters
Type |
Name |
Description |
System.String |
property |
|
System.String |
value |
|
System.Boolean |
ignoreCase |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа заканчивается указанной подстрокой.
Declaration
object EndsWith(string property, string value, bool ignoreCase = true)
Parameters
Type |
Name |
Description |
System.String |
property |
|
System.String |
value |
|
System.Boolean |
ignoreCase |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа равно (==) указанному значению.
Declaration
object Eq<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий наличие свойства в документе.
Declaration
object Exists(string property, bool exists = true)
Parameters
Type |
Name |
Description |
System.String |
property |
|
System.Boolean |
exists |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа больше (>) указанного значения.
Declaration
object Gt<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа больше или равно (>=) указанному значению.
Declaration
object Gte<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа входит в указанное множество.
Declaration
object In<TProperty>(string property, IEnumerable<TProperty> values)
Parameters
Type |
Name |
Description |
System.String |
property |
|
IEnumerable<TProperty> |
values |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа меньше (<) указанного значения.
Declaration
object Lt<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа меньше или равно (<=) указанному значению.
Declaration
object Lte<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, который содержит хотя бы один элемент, удовлетворяющий указанному фильтру.
Declaration
object Match(string arrayProperty, object filter)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Object |
filter |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр логического отрицания (NOT).
Declaration
object Not(object filter)
Parameters
Type |
Name |
Description |
System.Object |
filter |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа не равно (!=) указанному значению.
Declaration
object NotEq<TProperty>(string property, TProperty value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
TProperty |
value |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа не входит в указанное множество.
Declaration
object NotIn<TProperty>(string property, IEnumerable<TProperty> values)
Parameters
Type |
Name |
Description |
System.String |
property |
|
IEnumerable<TProperty> |
values |
|
Returns
Type |
Description |
System.Object |
|
Type Parameters
Name |
Description |
TProperty |
|
|
Improve this Doc
View Source
Создает фильтр логического сложения (OR).
Declaration
object Or(IEnumerable<object> filters)
Parameters
Type |
Name |
Description |
IEnumerable<System.Object> |
filters |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр логического сложения (OR).
Declaration
object Or(params object[] filters)
Parameters
Type |
Name |
Description |
System.Object[] |
filters |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа удовлетворяет указанному регулярному выражению.
Declaration
object Regex(string property, Regex value)
Parameters
Type |
Name |
Description |
System.String |
property |
|
Regex |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, размер которого равен указанному значению.
Declaration
object SizeEq(string arrayProperty, int value)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, размер которого больше (>) указанного значения.
Declaration
object SizeGt(string arrayProperty, int value)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, размер которого больше или равно (>=) указанному значению.
Declaration
object SizeGte(string arrayProperty, int value)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, размер которого меньше (<) указанного значения.
Declaration
object SizeLt(string arrayProperty, int value)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что свойство является массивом, размер которого меньше или равно (<=) указанному значению.
Declaration
object SizeLte(string arrayProperty, int value)
Parameters
Type |
Name |
Description |
System.String |
arrayProperty |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что значение свойства документа начинается указанной подстрокой.
Declaration
object StartsWith(string property, string value, bool ignoreCase = true)
Parameters
Type |
Name |
Description |
System.String |
property |
|
System.String |
value |
|
System.Boolean |
ignoreCase |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Text(String, String, Boolean, Boolean)
Создает фильтр, проверяющий, что документ удовлетворяет условию полнотекстового поиска.
Declaration
object Text(string search, string language = null, bool caseSensitive = false, bool diacriticSensitive = false)
Parameters
Type |
Name |
Description |
System.String |
search |
|
System.String |
language |
|
System.Boolean |
caseSensitive |
|
System.Boolean |
diacriticSensitive |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Создает фильтр, проверяющий, что тип значения свойства документа равен указанному.
Declaration
object Type(string property, DataType valueType)
Parameters
Type |
Name |
Description |
System.String |
property |
|
DataType |
valueType |
|
Returns
Type |
Description |
System.Object |
|
Extension Methods