c# - DbCommand.ExecuteNonQuery error handling -
When I use DbCommand.ExecuteNonQuery () in .NET, it will return a scalar. Is this the only information that I will get from this order? Or is there any exception, for example if the command is wrong, or some time is over or something else?
If the command time comes out, or if you have a bad SQL, then ExecuteNonQuery () is an exception Will throw. Return method is the number of rows that affect the value.
It is sparse on, but if you look at some of these, then it becomes more pronounced.
Comments
Post a Comment