使用 VS 2008、SQL Server 2008 和 WPF 3.5,我对架构进行了一些更改并更新了模型。它编译并运行良好,直到客户端应用程序调用特定实体并且我得到以下信息(实际名称已替换):
The data reader is incompatible with the specified '<Model>.<ViewBasedEntity>'. A member of the type, '<Property>', does not have a corresponding column in the data reader with the same name.
我已经在服务应用程序中搜索了相关的实体和属性名称,尝试在表映射中重命名属性,似乎还有许多其他人报告了相同的错误,但似乎无法找到及时的答案...... .
...有谁知道如何追踪这一点,如果是这样,是否有解决方法或方法可以在未来避免?