Click or drag to resize

ObjectShredderTShred Method

Loads a DataTable from a sequence of objects.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 8.0.0.0+c5a14bc14715399f60fcf611201a5e8ad953fbc3
Syntax
C#
public DataTable Shred(
	IEnumerable<T> source,
	DataTable table,
	LoadOption? options
)

Parameters

source  IEnumerableT
The sequence of objects to load into the DataTable.
table  DataTable
The input table. The schema of the table must match that the type T. If the table is null, a new table is created with a schema created from the public properties and fields of the type T.
options  NullableLoadOption
Specifies how values from the source sequence will be applied to existing rows in the table.

Return Value

DataTable
A DataTable created from the source sequence.
See Also