Gets the automatically generated AdsCommand object required to perform inserts on the database when an application calls AdsDataAdapter.Update.
public AdsCommand GetInsertCommand();
An application can use the GetInsertCommand method for informational or troubleshooting purposes because it returns the AdsCommand object to be executed.
You can also use GetInsertCommand as the basis of a modified command. For example, you might call GetInsertCommand during development to quickly produce an INSERT statement and then use that statement directly in your application rather than using the AdsCommandBuilder in the released application.
After the SQL statement is first generated, the application must explicitly call AdsCommandBuilder.RefreshSchema if it changes the statement in any way. Otherwise, the GetInsertCommand will be still be using information from the previous statement, which might not be correct. The SQL statements are first generated either when the application calls AdsDataAdapter.Update or GetInsertCommand.