Gets the automatically generated SqlCommand object required to perform updates on the database.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
An application can use the method for informational or troubleshooting purposes because it returns the SqlCommand object to be executed.
After the Transact-SQL statement is first generated, the application must explicitly call RefreshSchema if it changes the statement in any way. Otherwise, the will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either Update or .
For more information, see Generating Commands with CommandBuilders (ADO.NET).