Свойство DacDeployOptions.GenerateSmartDefaults

Get or set boolean that specifies whether default values should be generated to populate NULL columns that are constrained to NOT NULL values.

Пространство имен:  Microsoft.SqlServer.Dac
Сборка:  Microsoft.SqlServer.Dac (в Microsoft.SqlServer.Dac.dll)

Синтаксис

'Декларация
Public Property GenerateSmartDefaults As Boolean 
    Get 
    Set
'Применение
Dim instance As DacDeployOptions 
Dim value As Boolean 

value = instance.GenerateSmartDefaults

instance.GenerateSmartDefaults = value
public bool GenerateSmartDefaults { get; set; }
public:
property bool GenerateSmartDefaults {
    bool get ();
    void set (bool value);
}
member GenerateSmartDefaults : bool with get, set
function get GenerateSmartDefaults () : boolean 
function set GenerateSmartDefaults (value : boolean)

Значение свойства

Тип: System.Boolean
True if default values should be generated; otherwise false. Default is false.

Замечания

This is useful when needing to add a new NOT NULL column to an existing table with data.

См. также

Справочник

DacDeployOptions Класс

Пространство имен Microsoft.SqlServer.Dac