Class ExpressionStarter<T>
ExpressionStarter{T} which eliminates the default 1=0 or 1=1 stub expressions
Inheritance
System.Object
ExpressionStarter<T>
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
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
TailCall
Declaration
public bool TailCall { get; }
Property Value
Type |
Description |
System.Boolean |
|
Type
Declaration
public Type Type { get; }
Property Value
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>>)
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>>)
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()
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
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
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
Returns
Type |
Description |
Func<T, System.Boolean> |
|
Extension Methods