Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem using EF with oracle views , or views generally , I can easily retrieve data from views through my Entity(which has views only no tables) , but I can't insert/ update or delete any records giving me the below error : "The table/view does not have a primary key defined. The Entity is read-only"

Although all my views have at least one Field having "Entity Key" checked

Note: i am using VS2013 and EF 6
Posted
Updated 27-Jan-15 5:59am
v4
Comments
Kornfeld Eliyahu Peter 27-Jan-15 12:31pm    
And? How do you expect to update something with no keys? You should add some keys to your views/entities...
Member 10837197 1-Feb-15 2:42am    
i already have , that key is the one having "Entity key" property checked

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900