Język

SqlServerPropertyAnnotations.GetDefaultValueSql(Boolean) Metoda

Definicja

Pobiera domyślny zestaw wyrażeń SQL dla właściwości .

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

Parametry

fallback
Boolean

Jeśli trueustawiono wartość , a niektóre SQL Server określoneValueGenerationStrategy, ta metoda będzie zawsze zwracananull, ponieważ te strategie nie używają wyrażeń domyślnych.

Zwraca

Wyrażenie domyślne lub null jeśli nie zostało ustawione.

Dotyczy