DbExpressionBuilder.Parameter Method (TypeUsage, String)
Creates a new DbParameterReferenceExpression that references a parameter with the specified name and type.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbParameterReferenceExpression Parameter( this TypeUsage type, string name )
Parameters
- type
-
Type:
System.Data.Entity.Core.Metadata.Edm.TypeUsage
The type of the referenced parameter.
- name
-
Type:
System.String
The name of the referenced parameter.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbParameterReferenceExpressionA 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.