Variable Method

DbExpressionBuilder.Variable Method (TypeUsage, String)

.NET Framework (current version)
 

Creates a new DbVariableReferenceExpression that references a variable with the specified name and type.

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbVariableReferenceExpression Variable(
	this TypeUsage type,
	string name
)

Parameters

type
Type: System.Data.Metadata.Edm.TypeUsage

The type of the referenced variable.

name
Type: System.String

The name of the referenced variable.

Return Value

Type: System.Data.Common.CommandTrees.DbVariableReferenceExpression

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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft