Entity Framework - Where is my Object Context?
问题 Ok, I'm obviously missing something very basic. I'm very new to Entity Framework. I want to call stored procedures without importing them, so I was planning on using ExecuteStoreQuery(). According to the documentation, ExecuteStoreQuery is a method of ObjectContext. But, I have no idea where to get my ObjectContext. I generated my entites using Database First. So far, I have been accessing my entities something like this: var db = new MyEntities(); PRODUCT p = db.PRODUCTS.First(a => a