Edit

Share via


DbExpressionBuilder.Parameter(TypeUsage, String) Method

Definition

Creates a new DbParameterReferenceExpression that references a parameter with the specified name and type.

C#
public static System.Data.Common.CommandTrees.DbParameterReferenceExpression Parameter(this System.Data.Metadata.Edm.TypeUsage type, string name);

Parameters

type
TypeUsage

The type of the referenced parameter.

name
String

The name of the referenced parameter.

Returns

A DbParameterReferenceExpression that represents a reference to a parameter with the specified name and type. The result type of the expression will be the same as type.

Applies to