title: execute stored procedure in entity Framework Core without expecting map to dbset
body: <p>I am working on .NET CORE, Entity Framework core. I have stored procedure that I need to execute from .NET class. My stored procedure takes number of 'Context' and I don't know how to deal this, although I have dataView which is final exception.</p>
  
  <p>I wounder if I can use my dataView instead of context.dataModel class, current implementation (Context.Claims.FromSql) </p>
  
  <h2>dataView</h2>
  
  <pre><code>public class ClaimDataView
  {
      public Guid ClaimId { get; set; }
      public int IdNum { get; set; }
      public string Value { get; set; }
      public DateTime ExpirationDate { get; set; }
      public ClaimAttributionActions Action { get; set; }
      public bool ActiveStateForRole { get; set; }
  
  }
  </code></pre>
  
  <h2>stored-Procedure call</h2>
  
  <pre><code>public Guid UserId { get; set; }
  public Guid ClientId { get; set; }
  public Guid ConsultationId { get; set; }
  
    var userParam = new SqlParameter("@UserVal", UserId);
    var clientParam = new SqlParameter("@ClientVal", ConsultationId);
    var consultationParam = new SqlParameter("@ConsultationVal", ConsultationId);
  
   //**************need help in following line
    var query = Context.Claims.FromSql("EXECUTE dbo.ListUserClaims @userId=@UserVal, @clientId=@ClientVal, @consultationId=@ConsultationVal"
              , userParam, clientParam, consultationParam);
  </code></pre>
  
  <h2>new update</h2>
  
  <h2>moduleContext Class</h2>
  
  <pre><code>  protected override void OnModelCreating(ModelBuilder modelBuilder)
      {
         //other models....
         modelBuilder.Query&lt;ClaimDataView&gt;();
      }
  </code></pre>
  
  <h2>Stored Procedure executing from</h2>
  
  <pre><code> var query = Context.Query&lt;UserDataView&gt;().FromSql("EXECUTE dbo.ListUserClaims @userId=@UserVal, @clientId=@ClientVal, @consultationId=@ConsultationVal"
              , userParam, clientParam, consultationParam);
  </code></pre>
  
  <h2>error</h2>
  
  <pre><code>System.InvalidOperationException: Cannot create a DbSet for 'UserDataView' because this type is not included in the model for the context.
   at Microsoft.EntityFrameworkCore.Internal.InternalDbQuery`1.get_EntityType()
  </code></pre>