GeneralUtilsProduceEmptyDataSet Method |
Produces an empty DataSet, with for every element specified in the specified prefetch path a DataTable. It adds PK constraints and
DataRelations to each datatable added. The datatables have the name of the entity: per entity type found there's 1 table.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax public static DataSet ProduceEmptyDataSet(
IPrefetchPathCore path,
IElementCreatorCore elementCreator
)
Public Shared Function ProduceEmptyDataSet (
path As IPrefetchPathCore,
elementCreator As IElementCreatorCore
) As DataSet
Parameters
- path
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPrefetchPathCore
The path. - elementCreator
- Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
The element creator.
Return Value
Type:
DataSetReady to use, empty dataset with for every type in the prefetch path an empty datatable with all the columns specified
Remarks Use the returned DataSet for hierarchical projections
See Also