다음을 통해 공유


DbExpressionBuilder.Variable(TypeUsage, String) 메서드

정의

지정된 이름 및 형식으로 변수를 참조하는 새 DbVariableReferenceExpression을 만듭니다.

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

매개 변수

type
TypeUsage

참조된 변수의 형식입니다.

name
String

참조되는 변수의 이름입니다.

반환

지정된 이름 및 형식의 변수에 대한 참조를 나타내는 DbVariableReferenceExpression입니다. 식의 결과 형식은 형식과 동일합니다.

적용 대상