It has a DefiningQuery but no InsertFunction element… err

后端 未结 6 1982
猫巷女王i
猫巷女王i 2020-11-28 20:56

This thing is driving me crazy, and the error is quite meaningless to me:

Unable to update the EntitySet \'TableB\' because it has a DefiningQuery and no elemen

6条回答
  •  萌比男神i
    2020-11-28 20:59

    I was missing a primary key on my table and got this error message. One thing I noted was after I added the key to the table, I needed to clear the table from the edmx using the designer, save the edmx, then update it again to add the table back in. It wasn't picking up the key since it was already assigned as a view. This didn't require editing the edmx manually.

提交回复
热议问题