Спецификация условия фильтрации данных.
Inheritance
System.Object
Specification<TDocument>
Namespace:InfinniPlatform.DocumentStorage.Specifications
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
public class Specification<TDocument> : object, ISpecification<TDocument>
Type Parameters
| Name |
Description |
| TDocument |
|
Constructors
|
Improve this Doc
View Source
Declaration
public Specification(Expression<Func<TDocument, bool>> filter = null)
Parameters
| Type |
Name |
Description |
| Expression<Func<TDocument, System.Boolean>> |
filter |
Условие фильтрации данных.
|
Properties
|
Improve this Doc
View Source
Условие фильтрации данных.
Declaration
public virtual Expression<Func<TDocument, bool>> Filter { get; }
Property Value
| Type |
Description |
| Expression<Func<TDocument, System.Boolean>> |
|
Implements
Operators
|
Improve this Doc
View Source
Declaration
public static Specification<TDocument> operator &(Specification<TDocument> left, Specification<TDocument> right)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Specification<TDocument> operator |(Specification<TDocument> left, Specification<TDocument> right)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator Specification<TDocument>(Expression<Func<TDocument, bool>> value)
Parameters
| Type |
Name |
Description |
| Expression<Func<TDocument, System.Boolean>> |
value |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator Expression<Func<TDocument, bool>>(Specification<TDocument> value)
Parameters
Returns
| Type |
Description |
| Expression<Func<TDocument, System.Boolean>> |
|
|
Improve this Doc
View Source
Declaration
public static Specification<TDocument> operator !(Specification<TDocument> value)
Parameters
Returns
Extension Methods