![]() ![]() Namespaceĭatabase.BeginExecuteNonQuery(DbCommand, AsyncCallback, Object)ĭatabase. If the process of executing the command has not yet finished, this method blocks until the operation is complete. Refer to 'Asynchronous Query Execution'article for detailed information. When you call BeginExecuteNonQuery () to execute a Transact-SQL statement, you must call EndExecuteNonQuery in order to complete the operation. The IAsyncResult returned by a call to any overload of BeginExecuteNonQuery(DbCommand, AsyncCallback, Object). A pair of asynchronous functions (BeginExecuteNonQueryand EndExecuteNonQuery) can be used instead of the synchronous function ExecuteNonQueryto gain more performance and flexibility in your application. Public Overridable Function EndExecuteNonQuery ( _ Thus concluding it, we must use ExecuteNonQuery for INSERT. Namespace: Assembly: (in .dll) Syntax 'Declaration We will also use Repository pattern and Unit of Work to manage our data. Finishes asynchronous execution of a SQL statement, returning the number of affected records.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |