ORM Sample Class Library

DataManager.GetRoomFromDataSet Method 

Gets a OleroTrainingBiz.Room from the already loaded records in this DataManager, by primary key.

[Visual Basic]
Public Function GetRoomFromDataSet( _
   ByVal ID As Integer _
) As Room
public Room GetRoomFromDataSet(
   int ID


Primary key of the data row to retrieve.

Return Value

A Room, or null if not found


This method is made available for when the dataset has been serialized from session state or disk.


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 currend contact */
DataManager dm = new DataManager(Config.Dsn);
dm.DataSet = (DataSet)Session["DataSet"];
_Room = dm.GetContactFromDataSet((System.Int32)Session["RoomID"]);

See Also

DataManager Class | OleroTrainingBiz Namespace


Generated from assembly OleroTrainingBiz [1.0.1565.29993]

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