I need to use Table Valued Parameter with string query
I have the following code
string query = "SELECT * FROM Tabla1 T1 INNER JOIN @listItems T2 ON T2.Id = T1.Id";
var results = sqlConnection.Query(query , new TableValuedParameter<string>("@listItems", "string_list_Type", valuesList));
the variable valueList is a List
The execution give me a error: "Could not find stored procedure"
Is posible usa table valued parameters without use procedure ?
thanks regards
internalclass so you can't create a new instance of it directly. - Darek