Click or drag to resize

DataTableETLCreateNestedDataTableTOuter, TInner Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Creates the nested data table. http://stackoverflow.com/questions/33823820/convert-generic-nested-list-to-datatable

Namespace:  imbSCI.DataComplex.extensions.data.operations
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static DataTable CreateNestedDataTable<TOuter, TInner>(
	this IEnumerable<TOuter> list,
	string innerListPropertyName
)
Request Example View Source

Parameters

list
Type: System.Collections.GenericIEnumerableTOuter
The list.
innerListPropertyName
Type: SystemString
Name of the inner list property.

Type Parameters

TOuter
The type of the outer.
TInner
The type of the inner.

Return Value

Type: DataTable

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTOuter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also