How to pass a dynamic list of int to FromSql method? i tried the following code but it not works.
Conversion failed when converting the nvarchar value '1,2,3' to data type int.
var result = dataContext.Customers.FromSql($"SELECT * FROM Customer WHERE Id IN ({string.Join(",", listOfInt)})")