语言

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设置了一些特定于ValueGenerationStrategySQL Server,则此方法将始终返回null,因为这些策略不使用计算表达式。

返回

计算表达式,或 null 未设置任何表达式。

适用于