Get affected rows on ExecuteNonQuery

后端 未结 5 1290
梦毁少年i
梦毁少年i 2020-12-01 17:35

I am currently working on a C# project and I am running an insert query which also does a select at the same time, e.g.:



        
5条回答
  •  难免孤独
    2020-12-01 18:08

    ExecuteNonQuery return the affected rows ONLY WHEN Use Affected Rows in the connections properties is set, if not (default) returns matched rows.

提交回复
热议问题