title: How to execute a stored procedure without returning results in Entity Framework 6?
body: <p>I have a stored procedure like this:</p>
  
  <pre><code>CREATE PROCEDURE InsertTest(@p1 NVARCHAR(50) , @p2 INT)
  AS 
  BEGIN 
     INSERT INTO dbo.Test(Name, Code)
     VALUES ( N'', 0)
  END
  </code></pre>
  
  <p>or other </p>
  
  <p>I try with this code:</p>
  
  <pre><code>context.Database.SqlQuery&lt;int&gt;("InsertTest @p1 , @p2", "a",1);
  </code></pre>
  
  <p>But this leads to error.</p>
  
  <p>How can I run it using <code>DbContext</code> ?</p>