title: Can't compile project after importing stored procedure
body: <p>After importing a stored procedure into my datamodel the project stopped compiling.</p>
  
  <p>It keeps giving me error: </p>
  
  <pre><code>The best overloaded method match for 
  'System.Data.Entity.Core.Objects.ObjectContext.ExecuteFunction&lt;TicketDataModel.sp_get_orphanjobgrades1_Result&gt;
  (string, params System.Data.Entity.Core.Objects.ObjectParameter[])' 
  has some invalid arguments  C:\Users\nikolaev\Documents\MySoft\TicketManager-06 11 2013\TicketManager\TicketDataModel\TicketDataModel\TicketEntities.Context.cs 105 20  TicketDataModel
  </code></pre>
  
  <p>and </p>
  
  <pre><code>`Argument 3: cannot convert from 'System.Data.Objects.ObjectParameter' to 
  'System.Data.Entity.Core.Objects.ObjectParameter'   
   C:\Users\nikolaev\Documents\MySoft\TicketManager-06 11 2013\TicketManager\TicketDataModel\TicketDataModel\TicketEntities.Context.cs    79  143 TicketDataModel`
  </code></pre>
  
  <p>The code in <code>context.cs</code> is as follows:</p>
  
  <pre><code>public virtual ObjectResult&lt;sp_get_orphanjobgrades1_Result&gt; sp_get_orphanjobgrades1(Nullable&lt;System.DateTime&gt; start_date, Nullable&lt;System.DateTime&gt; end_date)
  {
              var start_dateParameter = start_date.HasValue ?
                  new ObjectParameter("start_date", start_date) :
                  new ObjectParameter("start_date", typeof(System.DateTime));
  
              var end_dateParameter = end_date.HasValue ?
                  new ObjectParameter("end_date", end_date) :
                  new ObjectParameter("end_date", typeof(System.DateTime));
  
              return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction&lt;sp_get_orphanjobgrades1_Result&gt;("sp_get_orphanjobgrades1", start_dateParameter, end_dateParameter);
  }
  </code></pre>
  
  <p>I read that this may be because of EF 6 and that one needs to download VS 2012 Update 1 and/or EF 6 Tools for VS 2012. I downloaded the tools and I already have update 4 installed, but that doesn't help.</p>
  
  <p>Why is this? </p>