Method BindIf
BindIf<T, TContext>(Binder<TContext>, Expression<Func<TContext, bool>>, Expression<Func<TContext, T>>)
Declaration
public static IConditionalRuleBuilderPhase1<T, TContext> BindIf<T, TContext>(this Binder<TContext> binder, Expression<Func<TContext, bool>> conditionalExpression, Expression<Func<TContext, T>> targetExpression) where TContext : class
Parameters
Type | Name | Description |
---|---|---|
Binder<TContext> | binder | |
Expression<Func<TContext, bool>> | conditionalExpression | |
Expression<Func<TContext, T>> | targetExpression |
Returns
Type | Description |
---|---|
IConditionalRuleBuilderPhase1<T, TContext> |
Type Parameters
Name | Description |
---|---|
T | |
TContext |