DbExpressionBuilder.Variable(TypeUsage, String) Метод

Определение

Создает новую DbVariableReferenceExpression , которая ссылается на переменную с указанным именем и типом.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbVariableReferenceExpression ^ Variable(System::Data::Metadata::Edm::TypeUsage ^ type, System::String ^ name);
public static System.Data.Common.CommandTrees.DbVariableReferenceExpression Variable(this System.Data.Metadata.Edm.TypeUsage type, string name);
static member Variable : System.Data.Metadata.Edm.TypeUsage * string -> System.Data.Common.CommandTrees.DbVariableReferenceExpression
<Extension()>
Public Function Variable (type As TypeUsage, name As String) As DbVariableReferenceExpression

Параметры

type
TypeUsage

Тип указанной переменной.

name
String

Имя указанной переменной.

Возвращаемое значение

DbVariableReferenceExpression, представляющий ссылку на переменную с указанным именем и типом. Тип результата выражения будет совпадать typeс типом результата.

Применяется к