You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that it doesn't work when TVP class contains enum.
I get exception:
Result Message: System.InvalidCastException : Specified cast is not valid.
Result StackTrace:
at Microsoft.SqlServer.Server.SqlDataRecord.SetValue(Int32 ordinal, Object value)
at CodeOnlyStoredProcedure.TableValuedParameter.CrateValuedParameter(IEnumerable table, Type enumeratedType)
at CodeOnlyStoredProcedure.TableValuedParameter.CreateDbDataParameter(IDbCommand command)
at CodeOnlyStoredProcedure.StoredProcedure.AddParameters(IDbCommand cmd)
at CodeOnlyStoredProcedure.StoredProcedure3.Execute(IDbConnection connection, CancellationToken token, Int32 timeout) at CodeOnlyStoredProcedure.StoredProcedure3.Execute(IDbConnection connection, Int32 timeout)
The text was updated successfully, but these errors were encountered:
Hmmm, I could have sworn I've tried that before. Could you provide the signature of the TVP in SQL server, as well as the class you're using to pass it?
It seems that it doesn't work when TVP class contains enum.
I get exception:
The text was updated successfully, but these errors were encountered: