ComponentOne DataObjects for .NET
Merge Method

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : Merge Method
The dataSet that will be merged into the calling data set.
Merges the parameter data set containing only simple table data into this (caller) data set.
Syntax
'Declaration
 
Public Sub Merge( _
   ByVal dataSet As C1DataSet _
) 
public void Merge( 
   C1DataSet dataSet
)

Parameters

dataSet
The dataSet that will be merged into the calling data set.
Remarks
This method copies the data contained in the dataSet argument to the calling C1DataSet. It is used to refresh a data set after its modified rows are updated to the database in a business method, see "Business Methods". The normal sequence is to obtain a data set with the GetChanges method, pass it to the business method, return the passed data set back from the business method and call Merge for the original data set with the returned data set as the parameter.

The dataSet argument object must contain only simple table rows. If one of its table views or composite tables is not empty, this method throws an exception.

For example, see CustomFillUpdate sample.

See Also

Reference

C1DataSet Class
C1DataSet Members