EntityParameter Constructor (String, DbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the EntityParameter class using the specified properties.

Namespace:   System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public EntityParameter(
	string parameterName,
	DbType dbType,
	int size,
	ParameterDirection direction,
	bool isNullable,
	byte precision,
	byte scale,
	string sourceColumn,
	DataRowVersion sourceVersion,
	object value
)

Parameters

parameterName
Type: System.String

The name of the parameter.

dbType
Type: System.Data.DbType

One of the DbType values.

size
Type: System.Int32

The size of the parameter.

direction
Type: System.Data.ParameterDirection

One of the ParameterDirection values.

isNullable
Type: System.Boolean

true to indicate that the parameter accepts null values; otherwise, false.

precision
Type: System.Byte

The number of digits used to represent the value.

scale
Type: System.Byte

The number of decimal places to which value is resolved.

sourceColumn
Type: System.String

The name of the source column.

sourceVersion
Type: System.Data.DataRowVersion

One of the DataRowVersion values.

value
Type: System.Object

The value of the parameter.

.NET Framework
Available since 3.5
Return to top
Show: