語言

SqlServerPropertyAnnotations.GetComputedColumnSql(Boolean) 方法

定義

取得該屬性計算出的 SQL 表達式集合。

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

參數

fallback
Boolean

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

傳回

計算出的表達式,或 null 若未設定。

適用於