Muokkaa

Jaa


DbExpressionBuilder.GroupBindAs(DbExpression, String, String) Method

Definition

Creates a new DbGroupExpressionBinding that uses the specified variable name and group variable names to bind the given expression.

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

Parameters

input
DbExpression

The expression to bind.

varName
String

The variable name that should be used for the binding.

groupVarName
String

The variable name that should be used to refer to the group when the new group expression binding is used in a group-by expression.

Returns

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

Exceptions

input, varName or groupVarName is null.

input does not have a collection result type.

Applies to