I’m trying to call a stored procedure from EntityFramework which uses Table-value parameter.
But when I try to do function import I keep getting a warning message saying –
The function ‘InsertPerson’ has a parameter ‘InsertPerson_TVP’ at
parameter index 0 that has a data type ‘table type’ which is currently
not supported for the target .NET Framework version. The function was
excluded.
I did a initial search here and found few posts which says It’s possible in EntityFrameWork with some work arounds and few saying it’s not supported in current versions.
Does any one know a better approach or solution for this problem?
I ended up doing this, Please note we are working on EF
DataContext(notObjectContext)Executing a Stored procedure with output parameter
My Table-Value-Parameter (UDT Table) script looks like this:
And my store procedure begins like
For Stored procedure without
outputparameter we don’t need any ouput parameter added/passed to SP.Hope it helps some one.