title: No mapping to a relational type can be found for the CLR type 'Int32[]'
body: <p>When I execute a SQL Server stored procedure from Entity Framework Core (v2.0) in my ASP.NET Core project, I get this exception:</p>
  
  <blockquote>
    <p>InvalidOperationException: no mapping to a relational type can be found for the CLR type 'Int32[]'</p>
  </blockquote>
  
  <p>The SQL Server stored procedure code looks like this:</p>
  
  <pre><code>CREATE PROCEDURE [dbo].[sp-UpdateProductOrderAndStock]
      @customerOrderID INT,
      @qty INT
  AS
      DECLARE @customerProductID INT
      SET @customerProductID = (SELECT CustomerProductID 
                                FROM dbo.CustomerOrder 
                                WHERE ID = @customerOrderID)
  
      SET NOCOUNT ON;  
  
      UPDATE dbo.CustomerOrder
      SET CompletedQty = CompletedQty + @qty
      WHERE ID = @customerOrderID;
  
      UPDATE dbo.CProductStation
      SET Qty = Qty - @qty
      WHERE CustomerProductID = @customerProductID AND StationNo = 0;
  </code></pre>
  
  <p>ASP.NET Core data model as below:</p>
  
  <pre><code>public class CustomerProductDelivery
  {
      public int ID { get; set; }
      public int CustomerOrderID { get; set; }
      public DateTime DeliveryDate { get; set; }
      public string DeliveryNo { get; set; }
      public int DeliveryQty { get; set; }
      public CustomerOrder CustomerOrder { get; set; }
  }
  </code></pre>
  
  <p>ASP.net core Controller code to execute the stored procedure:</p>
  
  <pre><code>_context.Database.ExecuteSqlCommand("sp-UpdateProductOrderAndStock @p0, @p1", parameters: new[] { customerProductDelivery.CustomerOrderID,customerProductDelivery.DeliveryQty });
  </code></pre>