Check if an insert or update was successful in Entity Framework

前端 未结 3 1122
眼角桃花
眼角桃花 2021-01-18 05:25

In ADO.NET, ExecuteNonQuery() \"For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command\" (http://msdn.microsoft.com/en-us/

3条回答
  •  Happy的楠姐
    2021-01-18 06:07

    Yes, if there is no exception you may assume that the statements executed successfully.

提交回复
热议问题