DbExpressionBuilder.GroupBindAs(DbExpression, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个使用指定变量名称和组变量名称来绑定给定表达式的新 DbGroupExpressionBinding 变量。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbGroupExpressionBinding ^ GroupBindAs(System::Data::Common::CommandTrees::DbExpression ^ input, System::String ^ varName, System::String ^ groupVarName);
public static System.Data.Common.CommandTrees.DbGroupExpressionBinding GroupBindAs(this System.Data.Common.CommandTrees.DbExpression input, string varName, string groupVarName);
static member GroupBindAs : System.Data.Common.CommandTrees.DbExpression * string * string -> System.Data.Common.CommandTrees.DbGroupExpressionBinding
<Extension()>
Public Function GroupBindAs (input As DbExpression, varName As String, groupVarName As String) As DbGroupExpressionBinding
参数
- input
- DbExpression
要绑定的表达式。
- varName
- String
应用于绑定的变量名称。
- groupVarName
- String
在分组依据表达式中使用新的组表达式绑定时,应用于引用组的变量名称。
返回
具有指定表达式、变量名称和组变量名称的新组表达式绑定。
例外
input
groupVarName或varName为 null。
input 没有集合结果类型。