DeleteObject method is missing in Entity Framework 4.1

Posted by bobetko on Stack Overflow See other posts from Stack Overflow or by bobetko
Published on 2012-02-13T21:05:04Z Indexed on 2012/09/08 3:38 UTC
Read the original article Hit count: 216

This is driving me crazy. I am getting error that

object doesn't contain definition for DeleteObject.

Here is my line of code that produces an error:

ctx.Tanks.DeleteObject(Tank);

I tried to reference another object from another edmx file that my friend has created and then everything is fine, DeleteObject exists. I don't think I miss any references in my project.

And project itself contains edmx file and I used DBContext to create POCOs.

Any ideas?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about c#-4.0