Condividi tramite


Costruttore EntityParameter (String, DbType, Int32, String)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Inizializza una nuova istanza della classe EntityParameter utilizzando le proprietà specificate.

Spazio dei nomi:  System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")> _
Public Sub New ( _
    parameterName As String, _
    dbType As DbType, _
    size As Integer, _
    sourceColumn As String _
)
'Utilizzo
Dim parameterName As String 
Dim dbType As DbType 
Dim size As Integer 
Dim sourceColumn As String 

Dim instance As New EntityParameter(parameterName, _
    dbType, size, sourceColumn)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EntityParameter(
    string parameterName,
    DbType dbType,
    int size,
    string sourceColumn
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2214:DoNotCallOverridableMethodsInConstructors")]
public:
EntityParameter(
    String^ parameterName, 
    DbType dbType, 
    int size, 
    String^ sourceColumn
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")>]
new : 
        parameterName:string * 
        dbType:DbType * 
        size:int * 
        sourceColumn:string -> EntityParameter
public function EntityParameter(
    parameterName : String, 
    dbType : DbType, 
    size : int, 
    sourceColumn : String
)

Parametri

  • sourceColumn
    Tipo: System.String
    Nome della colonna di origine.

Vedere anche

Riferimento

EntityParameter Classe

Overload EntityParameter

Spazio dei nomi System.Data.Entity.Core.EntityClient