Example #1
0
 /// <summary>
 ///     Flattens the data tables using the relations that have been defined to selects all rows from both tables as long as
 ///     there is a match between the columns in both tables.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="predicate">The function used to determine if the column is removed from the flatten result set.</param>
 /// <returns>
 ///     Returns a <see cref="DataTable" /> of the flatten data structure.
 /// </returns>
 public static DataTable Flatten(this DataSet source, Predicate <DataColumn> predicate)
 {
     return(source.Flatten(r => r != null, predicate));
 }
Example #2
0
 /// <summary>
 ///     Flattens the data tables using the relations that have been defined to selects all rows from both tables as long as
 ///     there is a match between the columns in both tables.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <returns>
 ///     Returns a <see cref="DataTable" /> of the flatten data structure.
 /// </returns>
 public static DataTable Flatten(this DataSet source)
 {
     return(source.Flatten(r => r != null, c => c.ColumnName.Contains("_Id")));
 }
Example #3
0
 /// <summary>
 ///     Flattens the data tables using the relations that have been defined to selects all rows from both tables as long as
 ///     there is a match between the columns in both tables.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="predicate">The function used to determine if the relation is used as part of the flatten result set.</param>
 /// <returns>
 ///     Returns a <see cref="DataTable" /> of the flatten data structure.
 /// </returns>
 public static DataTable Flatten(this DataSet source, Predicate <DataRelation> predicate)
 {
     return(source.Flatten(predicate, c => c.ColumnName.Contains("_Id")));
 }