DbExpressionBuilder.BindAs(DbExpression, String) Method

Definition

Creates a new DbExpressionBinding that uses the specified variable name to bind the given expression.

C#
public static System.Data.Common.CommandTrees.DbExpressionBinding BindAs(this System.Data.Common.CommandTrees.DbExpression input, string varName);

Parameters

input
DbExpression

The expression to bind.

varName
String

The variable name that should be used for the binding.

Returns

A new expression binding with the specified expression and variable name.

Exceptions

input or varName is null.

input does not have a collection result.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1