CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. 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...
 

Detailed Description

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

Definition at line 23 of file ObjectAdapter.cs.

Member Function Documentation

◆ Fill() [1/3]

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.

Parameters
dsA reference to the DataSet to be filled.
sourceA reference to the object or collection acting as a data source.

Definition at line 35 of file ObjectAdapter.cs.

◆ Fill() [2/3]

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.

Parameters
dsA reference to the DataSet to be filled.
tableName
sourceA reference to the object or collection acting as a data source.

Definition at line 51 of file ObjectAdapter.cs.

◆ Fill() [3/3]

void Csla.Data.ObjectAdapter.Fill ( DataTable  dt,
object  source 
)

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.

Definition at line 73 of file ObjectAdapter.cs.