Share via


EntityParameter Constructors

Definition

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 Sub New ()

Applies to

EntityParameter(String, DbType)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EntityParameter (string parameterName, System.Data.DbType dbType);
new System.Data.Entity.Core.EntityClient.EntityParameter : string * System.Data.DbType -> System.Data.Entity.Core.EntityClient.EntityParameter

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

Attributes

Applies to

EntityParameter(String, DbType, Int32)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EntityParameter (string parameterName, System.Data.DbType dbType, int size);
new System.Data.Entity.Core.EntityClient.EntityParameter : string * System.Data.DbType * int -> System.Data.Entity.Core.EntityClient.EntityParameter

Parameters

parameterName
String

The name of the parameter.

dbType
DbType

One of the DbType values.

size
Int32

The size of the parameter.

Attributes

Applies to

EntityParameter(String, DbType, Int32, String)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EntityParameter (string parameterName, System.Data.DbType dbType, int size, string sourceColumn);
new System.Data.Entity.Core.EntityClient.EntityParameter : string * System.Data.DbType * int * string -> System.Data.Entity.Core.EntityClient.EntityParameter

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.

Attributes

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.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
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.Entity.Core.EntityClient.EntityParameter : string * System.Data.DbType * int * System.Data.ParameterDirection * bool * byte * byte * string * System.Data.DataRowVersion * obj -> System.Data.Entity.Core.EntityClient.EntityParameter

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.

Attributes

Applies to