Show / Hide Table of Contents

Class ExpressionStarter<T>

Inheritance
object
ExpressionStarter<T>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: System.Linq
Assembly: Volo.Abp.Core.dll
Syntax
public class ExpressionStarter<T>
Type Parameters
Name Description
T

Constructors

ExpressionStarter()

Declaration
public ExpressionStarter()

ExpressionStarter(bool)

Declaration
public ExpressionStarter(bool defaultExpression)
Parameters
Type Name Description
bool defaultExpression

ExpressionStarter(Expression<Func<T, bool>>?)

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

Properties

Body

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

CanReduce

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

DefaultExpression

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

IsStarted

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

Name

Declaration
public string? Name { get; }
Property Value
Type Description
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
bool

Type

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

UseDefaultExpression

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

Methods

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

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

Compile()

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

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

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

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

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

ToString()

Declaration
public override string? ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

implicit operator Func<T, bool>?(ExpressionStarter<T>?)

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

implicit operator Expression<Func<T, bool>>?(ExpressionStarter<T>?)

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, bool>>

implicit operator ExpressionStarter<T>?(Expression<Func<T, bool>>?)

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

Extension Methods

AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
PredicateBuilder.Extend<T>(ExpressionStarter<T>, Expression<Func<T, bool>>, PredicateOperator)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
In this article
Back to top Powered by ABP.IO Platform