SchemaTableColumn.AllowDBNull Campo

Definizione

Specifica se il valore DBNull è consentito.

public: static initonly System::String ^ AllowDBNull;
public static readonly string AllowDBNull;
 staticval mutable AllowDBNull : string
Public Shared ReadOnly AllowDBNull As String 

Valore del campo

Commenti

Restituisce la stringa "true" se DBNull è consentito; in caso contrario "false".

Note

Evitare di impostare AllowDbNull su "true" per le colonne chiave primaria. Una colonna definita come chiave primaria può essere impostata su AllowDbNull, ma non è possibile assegnarvi un valore Null.

Si applica a

Vedi anche