【发布时间】:2014-09-24 12:59:38
【问题描述】:
当我在 tablecontroller 上执行 Patch (updateasync) 时,我收到以下错误:
iisexpress.exe Error: 0 : Message='The client is attempting to use optimistic concurrency in
connection with updates and inserts but the current 'SimpleMappedEntityDomainManager`2'
implementation does not set the original version required to support this. Please implement the
method 'SetOriginalVersion' and provide the original value.',
Id=00000000-0000-0000-5d00-0080000000ff, Category='App.Controllers.Tables'
我正在使用 MappedEntityDomainManager,因为我已经连接了一个预先存在的数据库。
查找和插入一切正常。
【问题讨论】:
-
你能发布你的模型和你的 DTO 的代码(相互映射的类型)吗?