ObjectShredderTShred Method |
Loads a DataTable from a sequence of objects.
Namespace: Seal.HelpersAssembly: SealLibrary (in SealLibrary.dll) Version: 8.1.0.0+4fe7975a95558d7cdf0d4c425e2c3a22827d67dd
Syntax 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
DataTableA DataTable created from the source sequence.
See Also