語言

SqlServerPropertyAnnotations.GetDefaultValue(Boolean) 方法

定義

會設定該物業的預設值。

protected override object GetDefaultValue(bool fallback);
override this.GetDefaultValue : bool -> obj
Protected Overrides Function GetDefaultValue (fallback As Boolean) As Object

參數

fallback
Boolean

若 true,且設定了某些 SQL Server 特定ValueGenerationStrategy值,則此方法必然回傳null,因為這些策略不使用預設值。

傳回

預設值,或 null 如果沒有設定,則是預設值。

適用於