DbExpressionBuilder.Variable(TypeUsage, String) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy újat DbVariableReferenceExpression , amely egy megadott névvel és típussal rendelkező változóra hivatkozik.
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
Paraméterek
- type
- TypeUsage
A hivatkozott változó típusa.
- name
- String
A hivatkozott változó neve.
Válaszok
DbVariableReferenceExpression, amely egy megadott névvel és típussal rendelkező változóra mutató hivatkozást jelöl. A kifejezés eredménytípusa megegyezik typea .