SchemaTableColumn.AllowDBNull Fält

Definition

Anger om värdet DBNull tillåts.

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

Fältvärde

Kommentarer

Returnerar strängen "true" om DBNull tillåts. annars "false".

Note

Undvik att ange AllowDbNull "sant" för primärnyckelkolumner. En kolumn som definieras som en primärnyckel kan anges till AllowDbNull, men ett null-värde kan inte tilldelas till den.

Gäller för

Se även