Show / Hide Table of Contents

Class AndSpecification<T>

Represents the combined specification which indicates that both of the given specifications should be satisfied by the given object.

Inheritance
System.Object
Specification<T>
CompositeSpecification<T>
AndSpecification<T>
Implements
ICompositeSpecification<T>
ISpecification<T>
Inherited Members
CompositeSpecification<T>.Left
CompositeSpecification<T>.Right
Specification<T>.IsSatisfiedBy(T)
Namespace: Volo.Abp.Specifications
Assembly: Volo.Abp.Specifications.dll
Syntax
public class AndSpecification<T> : CompositeSpecification<T>, ICompositeSpecification<T>, ISpecification<T>
Type Parameters
Name Description
T

The type of the object to which the specification is applied.

Constructors

AndSpecification(ISpecification<T>, ISpecification<T>)

Constructs a new instance of AndSpecification<T> class.

Declaration
public AndSpecification(ISpecification<T> left, ISpecification<T> right)
Parameters
Type Name Description
ISpecification<T> left

The first specification.

ISpecification<T> right

The second specification.

Methods

ToExpression()

Gets the LINQ expression which represents the current specification.

Declaration
public override Expression<Func<T, bool>> ToExpression()
Returns
Type Description
Expression<Func<T, System.Boolean>>

The LINQ expression.

Overrides
Volo.Abp.Specifications.Specification<T>.ToExpression()

Implements

ICompositeSpecification<T>
ISpecification<T>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft