DbExpressionBuilder.Variable Method (TypeUsage, String)
Creates a new DbVariableReferenceExpression that references a variable with the specified name and type.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- type
-
Type:
System.Data.Entity.Core.Metadata.Edm.TypeUsage
The type of the referenced variable.
- name
-
Type:
System.String
The name of the referenced variable.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpressionA 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.