An ObjectAdapter is used to convert data in an object or collection into a DataTable.
More...
|
| void | Fill (DataSet ds, object source) |
| | Fills the DataSet with data from an object or collection.
|
| void | Fill (DataSet ds, string tableName, object source) |
| | Fills the DataSet with data from an object or collection.
|
| void | Fill (DataTable dt, object source) |
| | Fills a DataTable with data values from an object or collection.
|
An ObjectAdapter is used to convert data in an object or collection into a DataTable.
◆ Fill() [1/3]
| void Csla.Data.ObjectAdapter.Fill |
( |
DataSet | ds, |
|
|
object | source ) |
|
inline |
Fills the DataSet with data from an object or collection.
The name of the DataTable being filled is will be the class name of the object acting as the data source. The DataTable will be inserted if it doesn't already exist in the DataSet.
- Parameters
-
| ds | A reference to the DataSet to be filled. |
| source | A reference to the object or collection acting as a data source. |
- Exceptions
-
| ArgumentNullException | ds or source is null. |
◆ Fill() [2/3]
| void Csla.Data.ObjectAdapter.Fill |
( |
DataSet | ds, |
|
|
string | tableName, |
|
|
object | source ) |
|
inline |
Fills the DataSet with data from an object or collection.
The name of the DataTable being filled is specified as a parameter. The DataTable will be inserted if it doesn't already exist in the DataSet.
- Parameters
-
| ds | A reference to the DataSet to be filled. |
| tableName | |
| source | A reference to the object or collection acting as a data source. |
- Exceptions
-
| ArgumentNullException | ds or source is null. |
| ArgumentException | tableName is null, string.Empty or only consists of white spaces. |
◆ Fill() [3/3]
| void Csla.Data.ObjectAdapter.Fill |
( |
DataTable | dt, |
|
|
object | source ) |
|
inline |
Fills a DataTable with data values from an object or collection.
- Parameters
-
| dt | A reference to the DataTable to be filled. |
| source | A reference to the object or collection acting as a data source. |
- Exceptions
-
| ArgumentNullException | dt or source is null. |
The documentation for this class was generated from the following file: