Bewerken

Share via


EntityParameter Constructors

Definition

Initializes a new instance of the EntityParameter class.

Overloads

EntityParameter()

Initializes a new instance of the EntityParameter class using the default values.

EntityParameter(String, DbType)

Initializes a new instance of the EntityParameter class using the specified parameter name and data type.

EntityParameter(String, DbType, Int32)

Initializes a new instance of the EntityParameter class using the specified parameter name, data type and size.

EntityParameter(String, DbType, Int32, String)

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

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

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

EntityParameter()

Initializes a new instance of the EntityParameter class using the default values.

public:
 EntityParameter();
public EntityParameter ();
Public Sub New ()

Applies to

EntityParameter(String, DbType)

Initializes a new instance of the EntityParameter class using the specified parameter name and data type.

public:
 EntityParameter(System::String ^ parameterName, System::Data::DbType dbType);
public EntityParameter (string parameterName, System.Data.DbType dbType);
new System.Data.EntityClient.EntityParameter : string * System.Data.DbType -> System.Data.EntityClient.EntityParameter
Public Sub New (parameterName As String, dbType As DbType)

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

Exceptions

The value supplied in the dbType parameter is an invalid back-end data type.

Applies to

EntityParameter(String, DbType, Int32)

Initializes a new instance of the EntityParameter class using the specified parameter name, data type and size.

public:
 EntityParameter(System::String ^ parameterName, System::Data::DbType dbType, int size);
public EntityParameter (string parameterName, System.Data.DbType dbType, int size);
new System.Data.EntityClient.EntityParameter : string * System.Data.DbType * int -> System.Data.EntityClient.EntityParameter
Public Sub New (parameterName As String, dbType As DbType, size As Integer)

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

size
Int32

The size of the parameter.

Exceptions

The value supplied in the dbType parameter is an invalid back-end data type.

Applies to

EntityParameter(String, DbType, Int32, String)

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

public:
 EntityParameter(System::String ^ parameterName, System::Data::DbType dbType, int size, System::String ^ sourceColumn);
public EntityParameter (string parameterName, System.Data.DbType dbType, int size, string sourceColumn);
new System.Data.EntityClient.EntityParameter : string * System.Data.DbType * int * string -> System.Data.EntityClient.EntityParameter
Public Sub New (parameterName As String, dbType As DbType, size As Integer, sourceColumn As String)

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

size
Int32

The size of the parameter.

sourceColumn
String

The name of the source column.

Exceptions

The value supplied in the dbType parameter is an invalid back-end data type.

Applies to

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

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

public:
 EntityParameter(System::String ^ parameterName, System::Data::DbType dbType, int size, System::Data::ParameterDirection direction, bool isNullable, System::Byte precision, System::Byte scale, System::String ^ sourceColumn, System::Data::DataRowVersion sourceVersion, System::Object ^ value);
public EntityParameter (string parameterName, System.Data.DbType dbType, int size, System.Data.ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, System.Data.DataRowVersion sourceVersion, object value);
new System.Data.EntityClient.EntityParameter : string * System.Data.DbType * int * System.Data.ParameterDirection * bool * byte * byte * string * System.Data.DataRowVersion * obj -> System.Data.EntityClient.EntityParameter
Public Sub New (parameterName As String, dbType As DbType, size As Integer, direction As ParameterDirection, isNullable As Boolean, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As DataRowVersion, value As Object)

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

size
Int32

The size of the parameter.

direction
ParameterDirection

One of the ParameterDirection values.

isNullable
Boolean

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

precision
Byte

The number of digits used to represent the value.

scale
Byte

The number of decimal places to which value is resolved.

sourceColumn
String

The name of the source column.

sourceVersion
DataRowVersion

One of the DataRowVersion values.

value
Object

The value of the parameter.

Exceptions

The value supplied in the dbType parameter is an invalid back-end data type.

Applies to