DbParameter Classe
Definizione
Rappresenta un parametro di un oggetto DbCommand e, facoltativamente, il relativo mapping a una colonna di DataSet.Represents a parameter to a DbCommand and optionally, its mapping to a DataSet column. Per altre informazioni sui parametri, vedere Configurazione dei parametri e tipi di dati dei parametri.For more information on parameters, see Configuring Parameters and Parameter Data Types.
public ref class DbParameter abstract
public ref class DbParameter abstract : MarshalByRefObject, System::Data::IDbDataParameter
public ref class DbParameter abstract : System::Data::IDbDataParameter
public abstract class DbParameter
public abstract class DbParameter : MarshalByRefObject, System.Data.IDbDataParameter
public abstract class DbParameter : System.Data.IDbDataParameter
type DbParameter = class
type DbParameter = class
inherit MarshalByRefObject
interface IDataParameter
interface IDbDataParameter
type DbParameter = class
interface IDataParameter
interface IDbDataParameter
type DbParameter = class
inherit MarshalByRefObject
interface IDbDataParameter
interface IDataParameter
Public MustInherit Class DbParameter
Public MustInherit Class DbParameter
Inherits MarshalByRefObject
Implements IDbDataParameter
Public MustInherit Class DbParameter
Implements IDbDataParameter
- Ereditarietà
-
DbParameter
- Ereditarietà
- Derivato
- Implementazioni
Costruttori
DbParameter() |
Inizializza una nuova istanza della classe DbParameter.Initializes a new instance of the DbParameter class. |
Proprietà
DbType |
Ottiene o imposta l'oggetto DbType del parametro.Gets or sets the DbType of the parameter. |
Direction |
Ottiene o imposta un valore che indica se il parametro è di solo input, di solo output, bidirezionale o un parametro di un valore restituito da una stored procedure.Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter. |
IsNullable |
Ottiene o imposta un valore che indica se il parametro ammette valori Null.Gets or sets a value that indicates whether the parameter accepts null values. |
ParameterName |
Ottiene o imposta il nome di DbParameter.Gets or sets the name of the DbParameter. |
Precision |
Ottiene o imposta il numero massimo di cifre utilizzate per rappresentare la proprietà Value.Gets or sets the maximum number of digits used to represent the Value property. |
Scale |
Ottiene o imposta il numero di posizioni decimali in cui viene risolto Value.Gets or sets the number of decimal places to which Value is resolved. |
Size |
Ottiene o imposta le dimensioni massime in byte dei dati contenuti nella colonna.Gets or sets the maximum size, in bytes, of the data within the column. |
SourceColumn |
Ottiene o imposta il nome della colonna di origine mappata alla classe DataSet e utilizzata per il caricamento o la restituzione della proprietà Value.Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value. |
SourceColumnNullMapping |
Ottiene o imposta un valore che indica se la colonna di origine ammette valori Null.Gets or sets a value which indicates whether the source column is nullable. Questo consente a DbCommandBuilder di generare correttamente istruzioni Update per le colonne nullable.This allows DbCommandBuilder to correctly generate Update statements for nullable columns. |
SourceVersion |
Ottiene o imposta l'enumerazione DataRowVersion da utilizzare per il caricamento della proprietà Value.Gets or sets the DataRowVersion to use when you load Value. |
Value |
Ottiene o imposta il valore del parametro.Gets or sets the value of the parameter. |
Metodi
CreateObjRef(Type) |
Consente di creare un oggetto che contiene tutte le informazioni rilevanti necessarie per la generazione del proxy utilizzato per effettuare la comunicazione con un oggetto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Ereditato da MarshalByRefObject) |
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object. (Ereditato da Object) |
GetHashCode() |
Funge da funzione hash predefinita.Serves as the default hash function. (Ereditato da Object) |
GetLifetimeService() |
Consente di recuperare l'oggetto servizio di durata corrente per controllare i criteri di durata per l'istanza.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Ereditato da MarshalByRefObject) |
GetType() |
Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance. (Ereditato da Object) |
InitializeLifetimeService() |
Ottiene un oggetto servizio di durata per controllare i criteri di durata per questa istanza.Obtains a lifetime service object to control the lifetime policy for this instance. (Ereditato da MarshalByRefObject) |
MemberwiseClone() |
Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object. (Ereditato da Object) |
MemberwiseClone(Boolean) |
Crea una copia dei riferimenti dell'oggetto MarshalByRefObject corrente.Creates a shallow copy of the current MarshalByRefObject object. (Ereditato da MarshalByRefObject) |
ResetDbType() |
Ripristina le impostazioni originali della proprietà DbType.Resets the DbType property to its original settings. |
ToString() |
Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object. (Ereditato da Object) |
Implementazioni dell'interfaccia esplicita
IDataParameter.SourceVersion |
Ottiene o imposta l'oggetto DataRowVersion da usare durante il caricamento di Value.Gets or sets the DataRowVersion to use when loading Value. |
IDbDataParameter.Precision |
Indica la precisione dei parametri numerici.Indicates the precision of numeric parameters. |
IDbDataParameter.Scale |
Per una descrizione di questo membro, vedere Scale.For a description of this member, see Scale. |