Class DataSetMergeUtilities
A utility class supporting the merge functionality in the DataSetUtilities.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public static class DataSetMergeUtilities
Methods
FindMergeTarget(DataTable, DataRow, DataColumn[])
Gets the row containing the same primary key as the source DataRow.
Declaration
public static DataRow FindMergeTarget(DataTable destinationTable, DataRow sourceRow, DataColumn[] primaryKey)
Parameters
System.Data.DataTable
destinationTable
A System.Data.DataTable that contains information about the destination table. |
DataRow
sourceRow
A DataRow that contains information about the row. |
System.Data.DataColumn[]
primaryKey
The array of System.Data.DataColumn that function as the primary key for the |
Returns
DataRow
Returns the row containing the same primary key as the |
GetPrimaryKey(DataTable, DataTable)
Gets the primary key.
Declaration
public static DataColumn[] GetPrimaryKey(DataTable sourceTable, DataTable destinationTable)
Parameters
System.Data.DataTable
sourceTable
A System.Data.DataTable that contains information about the source table. |
System.Data.DataTable
destinationTable
A System.Data.DataTable that contains information about the destination table. |
Returns
System.Data.DataColumn[]
Returns the primary key. |
MergeErrors(DataSet, DataSet)
Declaration
public static void MergeErrors(DataSet source, DataSet destination)
Parameters
System.Data.DataSet
source
|
System.Data.DataSet
destination
|
MergeErrors(DataTable, DataTable)
Declaration
public static void MergeErrors(DataTable sourceTable, DataTable destinationTable)
Parameters
System.Data.DataTable
sourceTable
|
System.Data.DataTable
destinationTable
|