DbContext.Database.ExecuteSqlCommand(sql, parameters)
I am using above method of Entity Framework to execute SP which takes table valued parameter and perform some operation.
It is successfully doing its task and I can see the result in the database. But it always return -1, no matter the query is successfully executed or not. I think, it should return 1 if the query execution is successful.
Could someone clarify me. Thanks