I have created a stored procedure that takes a table valued parameter that is a table with a single column of type int
. The idea is to simply pass a list of ids in
I was a bit confused by what the 'not passing the parameter' statement means. What ends up working for Entity Framework ExecuteSqlCommandAsync() is this:
new SqlParameter("yourParameterName", SqlDbType.Structured)
{
Direction = ParameterDirection.Input,
TypeName = "yourUdtType",
Value = null
};
This will pass the parameter as 'default'.