語言

SqlServerPropertyAnnotations.GetDefaultValueSql(Boolean) 方法

定義

取得該屬性預設的 SQL 表達式設定。

protected override string GetDefaultValueSql(bool fallback);
override this.GetDefaultValueSql : bool -> string
Protected Overrides Function GetDefaultValueSql (fallback As Boolean) As String

參數

fallback
Boolean

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

傳回

預設表達式,或 null 若未設定,則使用預設表達式。

適用於