DbExpressionBuilder.Variable(TypeUsage, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbVariableReferenceExpression that references a variable with the specified name and type.
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
Parameters
- type
- TypeUsage
The type of the referenced variable.
- name
- String
The name of the referenced variable.
Returns
A DbVariableReferenceExpression that represents a reference to a variable with the specified name and type. The result type of the expression will be the same as type
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru