计算列抛出无法更新错误,即使将其标记为已计算
Computed Column throw can't update error even after marking it as Computed
我有一个已标记为已计算的计算列,但它仍然向我抛出 SqlException:
The column "OPPORTUNITY_VALUE" cannot be modified because it is either a computed column or is the result of a UNION operator.
如何摆脱这个错误?
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public long? OPPORTUNITY_VALUE { get; set; }
原来,这是我公司使用的 dapper.fastcrud 软件包中的一个错误,抱歉。
我有一个已标记为已计算的计算列,但它仍然向我抛出 SqlException:
The column "OPPORTUNITY_VALUE" cannot be modified because it is either a computed column or is the result of a UNION operator.
如何摆脱这个错误?
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public long? OPPORTUNITY_VALUE { get; set; }
原来,这是我公司使用的 dapper.fastcrud 软件包中的一个错误,抱歉。