Interface IDataSetProvider
Interface for classes which can convert entities into datasets.
Namespace: SuperOffice.Data
Assembly: SoCore.dll
Syntax
public interface IDataSetProvider
Methods
GetDataSetFor<T>(T)
Create a DataSet from the provided object.
Declaration
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
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. |