I am trying to pass a list of data from C# to a SQL Server stored procedure, using Entity Framework Database First. There are lots of articles in SO and elsewhere about the problem, but it is not obvious which refer to passing variable data to the stored procedure and those returning variable data from the database. They also tend to focus on the code to call the stored procedure but I cannot get that far.
A user-defined table type and a stored procedure were created and tested in SSMS. The problem occurred in the C#. When updating the model (.edmx file), this warning is issued:
Warning 4 Error 6005: The function 'uspGetBusyPersonsTVP' has a parameter 'list' at parameter index 2 that has a data type 'table type' which is currently not supported for the target Entity Framework version. The function was excluded.
Examination in the Model Browser shows that the stored procedure has been created in the model, but only with the non-TVP parameters.
This MSDN site https://msdn.microsoft.com/en-us/data/hh859577.aspx says that table-valued parameters have been supported since EF 5.0, but the article only talks about returning data.
I have just finished updating and I am now using Visual Studio 2015 Community, .Net 4.6 and Entity Framework 6.1.3. Does anyone know if a TVP can be passed to a stored procedure, or if it is ever likely to be supported?