I'm trying to execute a query against my data model with context.ExecuteStoreCommand
but I keep getting the error message:
<object context> does not contain a definition for 'ExecuteStoreCommand' ...
I've used this before in an old project and I can't see what I'm missing. I've got project references to EntityFramework, System.Data, System.Data.Entity. The MSDN documentation says that ObjectContext is part of System.Data.Object but I can't reference that directly and I've not needed to reference it where I've used it before. What am I missing?