以下代码:
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.]
我找不到任何帮助。
发布于 2013-01-04 22:02:50
您是否忘记了为sistema_log_openedPdfs创建主键?
https://stackoverflow.com/questions/14158565
复制相似问题