/// <summary> /// Gets the rows that pertain to the data change type. /// </summary> /// <param name="dataChangeTypes">Type of the data changes.</param> /// <returns>Retursn a <see cref="DeltaRowCollection" /> representing the delta rows for the data change type.</returns> public DeltaRowCollection GetRows(params esriDataChangeType[] dataChangeTypes) { var rows = this.Where(deltaRow => dataChangeTypes.Contains(deltaRow.DataChangeType)); var collection = new DeltaRowCollection(this.ModifiedClassInfo, this.SourceVersion, this.TargetVersion); collection.AddRange(rows); return(collection); }
/// <summary> /// Combines the rows from the collections in into a single collection /// </summary> /// <param name="collections">The collections.</param> /// <returns> /// Retursn a <see cref="DeltaRowCollection" /> representing the delta rows for the data change type. /// </returns> public DeltaRowCollection GetRows(params DeltaRowCollection[] collections) { var collection = new DeltaRowCollection(this.ModifiedClassInfo, this.SourceVersion, this.TargetVersion); foreach (var rows in collections) { collection.AddRange(rows); } return(collection); }