Show / Hide Table of Contents

Class ExpressionStarter<T>

ExpressionStarter{T} which eliminates the default 1=0 or 1=1 stub expressions

Inheritance
System.Object
ExpressionStarter<T>
Namespace: System.Linq
Assembly: Volo.Abp.Core.dll
Syntax
public class ExpressionStarter<T> : object
Type Parameters
Name Description
T

The type

Constructors

ExpressionStarter()

Declaration
public ExpressionStarter()

ExpressionStarter(Expression<Func<T, Boolean>>)

Declaration
public ExpressionStarter(Expression<Func<T, bool>> exp)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> exp

ExpressionStarter(Boolean)

Declaration
public ExpressionStarter(bool defaultExpression)
Parameters
Type Name Description
System.Boolean defaultExpression

Properties

Body

Declaration
public Expression Body { get; }
Property Value
Type Description
Expression

CanReduce

Declaration
public virtual bool CanReduce { get; }
Property Value
Type Description
System.Boolean

DefaultExpression

The default expression

Declaration
public Expression<Func<T, bool>> DefaultExpression { get; set; }
Property Value
Type Description
Expression<Func<T, System.Boolean>>

IsStarted

Determines if the predicate is started.

Declaration
public bool IsStarted { get; }
Property Value
Type Description
System.Boolean

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

NodeType

Declaration
public ExpressionType NodeType { get; }
Property Value
Type Description
ExpressionType

Parameters

Declaration
public ReadOnlyCollection<ParameterExpression> Parameters { get; }
Property Value
Type Description
ReadOnlyCollection<ParameterExpression>

ReturnType

Declaration
public Type ReturnType { get; }
Property Value
Type Description
Type

TailCall

Declaration
public bool TailCall { get; }
Property Value
Type Description
System.Boolean

Type

Declaration
public Type Type { get; }
Property Value
Type Description
Type

UseDefaultExpression

A default expression to use only when the expression is null

Declaration
public bool UseDefaultExpression { get; }
Property Value
Type Description
System.Boolean

Methods

And(Expression<Func<T, Boolean>>)

And

Declaration
public Expression<Func<T, bool>> And(Expression<Func<T, bool>> expr2)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> expr2
Returns
Type Description
Expression<Func<T, System.Boolean>>

Compile()

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

Or(Expression<Func<T, Boolean>>)

Or

Declaration
public Expression<Func<T, bool>> Or(Expression<Func<T, bool>> expr2)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> expr2
Returns
Type Description
Expression<Func<T, System.Boolean>>

Start(Expression<Func<T, Boolean>>)

Set the Expression predicate

Declaration
public Expression<Func<T, bool>> Start(Expression<Func<T, bool>> exp)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> exp

The first expression

Returns
Type Description
Expression<Func<T, System.Boolean>>

ToString()

Show predicate string

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Implicit(Expression<Func<T, Boolean>> to ExpressionStarter<T>)

Allows this object to be implicitely converted to an Expression{Func{T, bool}}.

Declaration
public static implicit operator ExpressionStarter<T>(Expression<Func<T, bool>> right)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> right
Returns
Type Description
ExpressionStarter<T>

Implicit(ExpressionStarter<T> to Expression<Func<T, Boolean>>)

Allows this object to be implicitely converted to an Expression{Func{T, bool}}.

Declaration
public static implicit operator Expression<Func<T, bool>>(ExpressionStarter<T> right)
Parameters
Type Name Description
ExpressionStarter<T> right
Returns
Type Description
Expression<Func<T, System.Boolean>>

Implicit(ExpressionStarter<T> to Func<T, Boolean>)

Allows this object to be implicitely converted to an Expression{Func{T, bool}}.

Declaration
public static implicit operator Func<T, bool>(ExpressionStarter<T> right)
Parameters
Type Name Description
ExpressionStarter<T> right
Returns
Type Description
Func<T, System.Boolean>

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>)
PredicateBuilder.Extend<T>(ExpressionStarter<T>, Expression<Func<T, Boolean>>, PredicateOperator)
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