SchemaTableColumn.AllowDBNull 欄位

定義

規定是否允許價值 DBNull

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

欄位值

備註

若允許 DBNull 則回傳字串「true」;否則「假」。

Note

避免將主鍵欄位設 AllowDbNull 為「true」。 定義為主鍵的欄位可以設為 AllowDbNull,但不能為其指派空值。

適用於

另請參閱