SchemaTableColumn.AllowDBNull Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether value DBNull
is allowed.
public: static initonly System::String ^ AllowDBNull;
public static readonly string AllowDBNull;
staticval mutable AllowDBNull : string
Public Shared ReadOnly AllowDBNull As String
Field Value
Remarks
Returns the string "true" if DBNull is allowed; otherwise "false".
Note
Avoid setting AllowDbNull
to "true" for primary key columns. A column defined as a primary key can be set to AllowDbNull
, but a null value cannot be assigned to it.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.