System.Data.Common.CommandTrees.ExpressionBuilder.DbExpressionBuilder.IsNull(System.Data.Common.CommandTrees.DbExpression)

Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.DbExpressionBuilder.IsNull(System.Data.Common.CommandTrees.DbExpression) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public override DbExpression Visit(DbIsNullExpression expression)
        {
            EntityUtil.CheckArgumentNull(expression, "expression");

            return VisitUnary(expression, exp =>
                {
                    if(TypeSemantics.IsRowType(exp.ResultType))
                    {
                        // 
                        return CqtBuilder.CreateIsNullExpressionAllowingRowTypeArgument(exp);
                    }
                    else
                    {
                        return CqtBuilder.IsNull(exp);
                    }
                }
            );
        }