コード例 #1
0
        public override DbExpression Visit(DbConstantExpression expression)
        {
            EntityUtil.CheckArgumentNull(expression, "expression");

            // Note that it is only safe to call DbConstantExpression.GetValue because the call to
            // DbExpressionBuilder.Constant must clone immutable values (byte[]).
            return(VisitTerminal(expression, newType => CqtBuilder.Constant(newType, expression.GetValue())));
        }