 <p>Here is a solution which I don't recommand but If you want to use <code>DbContext.Database</code>, here it is:</p> <pre><code>using(var db = new MyDbContext(connectionString)) { db.Database.ExecuteSqlCommand("CREATE PROCEDURE MyProcedure ... END;"); var command = "EXEC MyProcedure;"; IEnumerable&lt;Customer&gt; customers = db.Database.SqlQuery&lt;Customer&gt;(command, null); } </code></pre>