Class DataSetProvider
Class which can convert entities into datasets.
Implements
Namespace: SuperOffice.Data
Assembly: SoCore.dll
Syntax
[SoInject]
public class DataSetProvider : Object, IDataSetProvider
Constructors
DataSetProvider()
Class which can convert entities into datasets.
Declaration
public DataSetProvider()
DataSetProvider(IRecordSetProvider)
Required constructor.
Declaration
public DataSetProvider(IRecordSetProvider recordSetProvider)
Parameters
Type | Name | Description |
---|---|---|
IRecordSetProvider | recordSetProvider | RecordProvider used to convert entities into records. |
Methods
GetDataSetFor<T>(T)
Create a DataSet from the provided object.
Declaration
public DataSet GetDataSetFor<T>(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance | Object to create dataset from. |
Returns
Type | Description |
---|---|
DataSet | A populated dataset. |
Type Parameters
Name | Description |
---|---|
T | Type of the provided object. |
GetDataSetFor<T>(T, String)
Create a DataSet from the provided object.
Declaration
public DataSet GetDataSetFor<T>(T instance, string rootTable)
Parameters
Type | Name | Description |
---|---|---|
T | instance | Object to create dataset from. |
String | rootTable | Name of the table for the root-item. |
Returns
Type | Description |
---|---|
DataSet | A populated dataset. |
Type Parameters
Name | Description |
---|---|
T | Type of the provided object. |