This is driving me crazy. I am getting error that
object doesn\'t contain definition for DeleteObject.
Here is my line of code
The DbContext API defines DbSets not ObjectSets. DbSet has a Remove method not DeleteObject method. You need to first decide which API you are going to use. If it the ObjectContext or DbContext.
DbContext
DbSet
ObjectSet
Remove
DeleteObject
ObjectContext