1

以下代码:

sistema_log_openedPdfs entity = new sistema_log_openedPdfs();
entity.idUser = guid;
entity.path = fullAbsPath;
context.sistema_log_openedPdfs.Add(entity);
context.SaveChanges();

我得到了这个疯狂的例外:

[UpdateException: Unable to update the EntitySet 'sistema_log_openedPdfs because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.]

Lokking寻求帮助我找不到任何帮助。

4

1 回答 1

2

您是否忘记为 ? 设置主键sistema_log_openedPdfs

于 2013-01-04T14:02:49.827 回答