NullableConstraint.Nullable 属性

获取或设置列是否可以为 NULL。

命名空间:  Microsoft.Data.Schema.ScriptDom.Sql
程序集:  Microsoft.Data.Schema.ScriptDom.Sql(在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

语法

声明
Public Property Nullable As Boolean
    Get
    Set
public bool Nullable { get; set; }
public:
property bool Nullable {
    bool get ();
    void set (bool value);
}
member Nullable : bool with get, set
function get Nullable () : boolean
function set Nullable (value : boolean)

属性值

类型:System.Boolean
如果列可以为 NULL,则返回 true;否则返回 false。

.NET Framework 安全性

请参见

参考

NullableConstraint 类

Microsoft.Data.Schema.ScriptDom.Sql 命名空间