Show / Hide Table of Contents

Class Specification<TDocument>

Спецификация условия фильтрации данных.

Inheritance
System.Object
Specification<TDocument>
Namespace:InfinniPlatform.DocumentStorage.Specifications
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public class Specification<TDocument> : object, ISpecification<TDocument>
Type Parameters
Name Description
TDocument

Constructors

| Improve this Doc View Source

Specification(Expression<Func<TDocument, Boolean>>)

Конструктор.

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

Filter

Условие фильтрации данных.

Declaration
public virtual Expression<Func<TDocument, bool>> Filter { get; }
Property Value
Type Description
Expression<Func<TDocument, System.Boolean>>
Implements
ISpecification<TDocument>.Filter

Operators

| Improve this Doc View Source

BitwiseAnd(Specification<TDocument>, Specification<TDocument>)

Declaration
public static Specification<TDocument> operator &(Specification<TDocument> left, Specification<TDocument> right)
Parameters
Type Name Description
Specification<TDocument> left
Specification<TDocument> right
Returns
Type Description
Specification<TDocument>
| Improve this Doc View Source

BitwiseOr(Specification<TDocument>, Specification<TDocument>)

Declaration
public static Specification<TDocument> operator |(Specification<TDocument> left, Specification<TDocument> right)
Parameters
Type Name Description
Specification<TDocument> left
Specification<TDocument> right
Returns
Type Description
Specification<TDocument>
| Improve this Doc View Source

Implicit(Expression<Func<TDocument, Boolean>> to Specification<TDocument>)

Declaration
public static implicit operator Specification<TDocument>(Expression<Func<TDocument, bool>> value)
Parameters
Type Name Description
Expression<Func<TDocument, System.Boolean>> value
Returns
Type Description
Specification<TDocument>
| Improve this Doc View Source

Implicit(Specification<TDocument> to Expression<Func<TDocument, Boolean>>)

Declaration
public static implicit operator Expression<Func<TDocument, bool>>(Specification<TDocument> value)
Parameters
Type Name Description
Specification<TDocument> value
Returns
Type Description
Expression<Func<TDocument, System.Boolean>>
| Improve this Doc View Source

LogicalNot(Specification<TDocument>)

Declaration
public static Specification<TDocument> operator !(Specification<TDocument> value)
Parameters
Type Name Description
Specification<TDocument> value
Returns
Type Description
Specification<TDocument>

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.