What is the return value of the following code when the code failed to execute ?
_Dbcontext.Database.ExecuteSqlCommand("TRUNCATE TABLE [TableName]");
I know that the value on succeed will be -1
but still don't know what other values expected to return if anything goes wrong .
The official documentation from Microsoft said the return value of ExecuteSqlCommand
is the result returned by the database after executing the command but what are the returned values of the command TRUNCATE
?