Help me in getting out of these errors:
Error 2
'System.Data.Objects.ObjectSet
Error 3
'CRUDs.CRUDsEntities' does not contain a definition for 'Entry' and no extension method 'Entry'
Error 4
'System.Data.Objects.ObjectSet
THNKS! :)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Aug 11, 2014, 4:06 PM
Abhishek JaiswalPosted Aug 11, 2014, 3:44 PM
that namespace n dll are already in my project snippet.
Ramesh MaruthiPosted Aug 8, 2014, 10:26 AM
The add and remove are from EntityFrame namespace System.Data.Entity
so my guess is using System.Data.Entity missing ? Also check reference EntityFramework.dll added in project ? Or use package manager (nuget) to get EF added in project?, Does your context derive from DBContext ? If not No add. If you see AddObject, you are most likely deriving from ObjectContext instead