Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

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

Supported in: 4.5.1, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.