阅读背景:

实体框架4错误:无法更新EntitySet,因为它具有DefiningQuery

来源:互联网 

Okay, here's the scenario. I have 3 tables. One called aspnet_Users one called Categories and a linking table called User_Categories. aspnet_Users and Categories both have primary keys (UserId and ID respectively). The linking table has only two columns: CategoryID and UserId, and there are foreign key relationships setup for each column AND I have a unique key setup for the two columns on User_Categories. This sets up a many-to-many relationship between the aspnet_Users table and the Categories table. I generated my entities edmx file from this database setup, and everything looks perfect and works for almost all operations.Okay, here's the scenario. I have 3 tables. One




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: