An ObjectAdapter is used to convert data in an object or collection into a DataTable. More...
Public Member Functions | |
void | Fill (DataSet ds, object source) |
Fills the DataSet with data from an object or collection. More... | |
void | Fill (DataSet ds, string tableName, object source) |
Fills the DataSet with data from an object or collection. More... | |
void | Fill (DataTable dt, object source) |
Fills a DataTable with data values from an object or collection. More... | |
An ObjectAdapter is used to convert data in an object or collection into a DataTable.
Definition at line 23 of file ObjectAdapter.cs.
void Csla.Data.ObjectAdapter.Fill | ( | DataSet | ds, |
object | source | ||
) |
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.
ds | A reference to the DataSet to be filled. |
source | A reference to the object or collection acting as a data source. |
Definition at line 35 of file ObjectAdapter.cs.
void Csla.Data.ObjectAdapter.Fill | ( | DataSet | ds, |
string | tableName, | ||
object | source | ||
) |
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.
ds | A reference to the DataSet to be filled. |
tableName | |
source | A reference to the object or collection acting as a data source. |
Definition at line 51 of file ObjectAdapter.cs.
void Csla.Data.ObjectAdapter.Fill | ( | DataTable | dt, |
object | source | ||
) |
Fills a DataTable with data values from an object or collection.
dt | A reference to the DataTable to be filled. |
source | A reference to the object or collection acting as a data source. |
Definition at line 73 of file ObjectAdapter.cs.