Getting error when I pass more then 2400 items.
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
How to solve this? My code is as below:
using (var dc = new DataContext(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]))
{
products = dc.Products.Where(x => productIds.Contains(x.product_id)).ToList();
}