it has a DefiningQuery and no InsertFunction element exists in the ModificationFunctionMapping element to support the current operation.
我在使用Entity Data Model做主从表添加数据的时候,发生标题的错误异常,然后检查了一下数据库表的定义,发现OrderDetail表中为设置主键。
请检查数据库的表中是否设置主键,是否是自增长ID。