Click or drag to resize

DataTableBuildersbuildDataTable Method (Object, String, DataTableBuildersbuildDataTableOptions, PropertyCollectionExtended, String, ILogBuilder)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
2017:: Builds horizontal data table with columns mapping properties of the type.

Namespace:  imbSCI.DataComplex.extensions.data.schema
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static DataTable buildDataTable(
	this Object firstItem,
	string __dataTable,
	DataTableBuildersbuildDataTableOptions options,
	PropertyCollectionExtended dictionary,
	string[] fieldsOrCategoriesToShow = null,
	ILogBuilder logger = null
)
Request Example View Source

Parameters

firstItem
Type: SystemObject
Type or Instance to be used for column estraction.
__dataTable
Type: SystemString
Name of data table. If empty or null = type name is used.
options
Type: imbSCI.DataComplex.extensions.data.schemaDataTableBuildersbuildDataTableOptions
dictionary
Type: imbSCI.Core.collectionPropertyCollectionExtended
fieldsOrCategoriesToShow (Optional)
Type: SystemString
Category or property name to include in DataTable. If its empty it will ignore this criteria. Entries ending with _ are prefix definisions
logger (Optional)
Type: imbSCI.Core.reportingILogBuilder

Return Value

Type: DataTable
DataTable object with proper DataColumn shema made from Primitive, Enum and ToStrings

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. 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).
Remarks

If fieldsCategoriesToShow[] parameters array is empty - filters are not applied

See Also