Documentation for this section has not yet been entered.
During System.Data.Common.DbDataAdapter.Update(System.Data.DataSet), if this property is not set and primary key information is present in the System.Data.DataSet, the SqlDataAdapter.DeleteCommand can be generated automatically if you set the SqlDataAdapter.SelectCommand property and use the System.Data.SqlClient.SqlCommandBuilder. Then, any additional commands that you do not set are generated by the System.Data.SqlClient.SqlCommandBuilder. This generation logic requires key column information to be present in the System.Data.DataSet. For more information, see Automatically Generated Commands.
When SqlDataAdapter.DeleteCommand is assigned to a previously created System.Data.SqlClient.SqlCommand, the System.Data.SqlClient.SqlCommand is not cloned. The SqlDataAdapter.DeleteCommand maintains a reference to the previously created System.Data.SqlClient.SqlCommand object.
For every column that you propagate to the data source on System.Data.Common.DbDataAdapter.Update(System.Data.DataSet), a parameter should be added to the InsertCommand, UpdateCommand, or DeleteCommand. The SourceColumn property of the parameter should be set to the name of the column. This indicates that the value of the parameter is not set manually, but is taken from the particular column in the currently processed row.