I have A controller
public ActionResult Index(int[] eo){ employes = _context.Database.SqlQuery(select * from table where tableId IN (@p0),String.Join(",", eo))}
The problem is the data of @p0
is being passed as string and TableID is int. The debug shows @p0
as ('10,2,3,5') what I want is (10,2,3,5).
How I can handle this problem?