共用方式為


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 為 。

適用於