Method GetIsNotNullExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetIsNotNullExpression<T>(ParameterExpression, string)
Gets the expression that checks if the property is not null.
public static Expression<Func<T, bool>> GetIsNotNullExpression<T>(ParameterExpression parameter, string propertyName)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property is not null.
Type Parameters
T
The type of the entity.
GetIsNotNullExpression<T>(ParameterExpression, Expression)
Gets the expression that checks if the property is not null.
public static Expression<Func<T, bool>> GetIsNotNullExpression<T>(ParameterExpression parameter, Expression propertyExpression)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the property.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property is not null.
Type Parameters
T
The type of the entity.