语言

RelationalPropertyAnnotations.GetComputedColumnSql(Boolean) 方法

定义

获取在为此属性创建列时应使用的计算约束 SQL 表达式。

protected virtual string GetComputedColumnSql(bool fallback);
abstract member GetComputedColumnSql : bool -> string
override this.GetComputedColumnSql : bool -> string
Protected Overridable Function GetComputedColumnSql (fallback As Boolean) As String

参数

fallback
Boolean

如果 true,则仅当此属性未 DefaultValue 设置或 DefaultValueSql 未设置时,才会返回非 null 值。

返回

为此属性创建列时应使用的计算约束 SQL 表达式。

适用于