Computed Column throw即使在将其标记为Computed之后也无法更新错误

时间:2015-12-22 22:37:06

标签: c# entity-framework code-first

我有一个已经标记为计算的计算列,但它仍然抛出了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; }

1 个答案:

答案 0 :(得分:0)

事实证明,这是我公司使用的dapper.fastcrud软件包中的一个错误,抱歉。