ExecuteNonQuery is obsolete

CSS Team asked on November 18, 2014 14:44

As GeneralConnection.ExecuteNonQuery gets depricated I was wondering how to retrieve the number of affected rows when using DataQuery("custom.insertquery"). The depricated code looks like this:

return ConnectionHelper.GetConnection().ExecuteNonQuery("custom.insertquery", parameters);

Best Regards, Florian

Recent Answers

Martin Hejtmanek answered on November 20, 2014 16:31


You have two options:

1) Use method GeneralConnection.ExecuteNonQuery(QueryParameters query) as Obsolete attribute says

2) Use method ConnectionHelper.ExecuteNonQuery

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.