CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Data.ObjectAdapter Class Reference

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.
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.

Detailed Description

An ObjectAdapter is used to convert data in an object or collection into a DataTable.

Member Function Documentation

◆ 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
dsA reference to the DataSet to be filled.
sourceA reference to the object or collection acting as a data source.
Exceptions
ArgumentNullExceptionds 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
dsA reference to the DataSet to be filled.
tableName
sourceA reference to the object or collection acting as a data source.
Exceptions
ArgumentNullExceptionds or source is null.
ArgumentExceptiontableName 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
dtA reference to the DataTable to be filled.
sourceA reference to the object or collection acting as a data source.
Exceptions
ArgumentNullExceptiondt or source is null.

The documentation for this class was generated from the following file: