title: EF Core - What is MapToStoredProcedures replacement in EF Core 3.1 or 5
body: <p>There is no <code>MapToStoredProcedures</code> in EF Core which is a pity as it allows the <code>Add</code> method to hide whether a stored procedure is used or not.</p>
  <p>I have looked at EF Core 3.1 and 5 and I cannot find the recommended replacement. So if I have the code below, how/where do I setup and call an insert stored procedure or select stored procedure against it?</p>
  <pre><code>public class DatabaseModel : DbContext
  {
      public virtual DbSet&lt;Office&gt; Offices { get; set; }
  
      public DatabaseModel(DbContextOptions&lt;DatabaseModel&gt; options) : base(options)    
      { }
  
      protected override void OnModelCreating(ModelBuilder modelBuilder) {}
  }
  </code></pre>
  <p>Thanks for any help.</p>