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.

적용 대상