语言

DbExpressionBuilder.BindAs(DbExpression, String) 方法

定义

创建使用指定变量名称绑定给定表达式的新 DbExpressionBinding 变量

public static System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding BindAs(this System.Data.Entity.Core.Common.CommandTrees.DbExpression input, string varName);
static member BindAs : System.Data.Entity.Core.Common.CommandTrees.DbExpression * string -> System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
<Extension()>
Public Function BindAs (input As DbExpression, varName As String) As DbExpressionBinding

参数

input
DbExpression

要绑定的表达式。

varName
String

应用于绑定的变量名称。

返回

具有指定表达式和变量名称的新表达式绑定。

例外

input 或 varName 为 null。

输入没有集合结果。

适用于