ORM Sample Class Library

DataManager.GetRoomCollectionFromDataSet Method 

Gets a collection of Room from the already loaded records in this DataManager instance.

[Visual Basic]
Public Function GetRoomCollectionFromDataSet() As RoomCollection
[C#]
public RoomCollection GetRoomCollectionFromDataSet();

Return Value

A collection of Room objects.

Remarks

This method is made available for when the dataset has been serialized from session state or disk. This method will return all Room loaded.

Example

This example shows a reason to use this method.

/* first web page - save dataset and primary keys */
Session["DataSet"] = dm.DataSet;
Session["RoomID"] = _Room.ID;

/* second web page - need to get current contact */
DataManager dm = new DataManager(Config.Dsn);
dm.DataSet = (DataSet)Session["DataSet"];
_Room = dm.GetContactFromDataSet((int)Session["RoomID"]);

See Also

DataManager Class | OleroTrainingBiz Namespace


o.com?subject=ORM Sample Class Library Documentation Feedback: DataManager.GetEnrollmentFromDataSet%C2%A0Method%C2%A0">Send comments on this topic.

Copyright Olero Software Inc. 2002-2004

Generated from assembly OleroTrainingBiz [1.0.1565.29993]

delICustomTypeDescriptorGetClassName.html">ICustomTypeDescriptor.GetClassName (inherited from BusinessBase)GetClassName