EntityParameter Constructor
Initializes a new instance of the EntityParameter class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object) | Initializes a new instance of the EntityParameter class using the specified properties. |
![]() | EntityParameter(String, DbType, Int32, String) | Initializes a new instance of the EntityParameter class using the specified properties. |
EntityParameter Constructor ()
Initializes a new instance of the EntityParameter class using the default values.
EntityParameter Constructor (String, DbType)
Initializes a new instance of the EntityParameter class using the specified parameter name and data type.
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public EntityParameter( string parameterName, DbType dbType )
Parameters
- parameterName
-
Type:
System.String
The name of the parameter.
- dbType
-
Type:
System.Data.DbType
One of the DbType values.
EntityParameter Constructor (String, DbType, Int32)
Initializes a new instance of the EntityParameter class using the specified parameter name, data type and size.
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public EntityParameter( string parameterName, DbType dbType, int size )
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.
EntityParameter Constructor (String, DbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)
Initializes a new instance of the EntityParameter class using the specified properties.
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 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.
EntityParameter Constructor (String, DbType, Int32, String)
Initializes a new instance of the EntityParameter class using the specified properties.
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public EntityParameter( string parameterName, DbType dbType, int size, string sourceColumn )
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.
- sourceColumn
-
Type:
System.String
The name of the source column.