I generated EF Entities from a Database. Now I would like run a raw sql against that same database that is not included in the generated entities.
I thought I'd use the DbContext .Database.SqlQuery method, but that throws an exception (unitntionalCodeFirsteExcption.
"The context is being used in Code First mode with code that was generated from an EDMX file for either Database First or Model First development. "
So does that mean one cannot access the database in this way., or is there a approach hidden somewhere that I am still to discover?
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.