ORM Sample Class Library

DataManager.GetEnrollmentCollectionFromDataSet Method 

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

[Visual Basic]
Public Function GetEnrollmentCollectionFromDataSet() As EnrollmentCollection
public EnrollmentCollection GetEnrollmentCollectionFromDataSet();

Return Value

A collection of Enrollment objects.


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


This example shows a reason to use this method.

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

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

See Also

DataManager Class | OleroTrainingBiz Namespace

m">Copyright Olero Software Inc. 2002-2004

Generated from assembly OleroTrainingBiz [1.0.1565.29993]

div>od.gif">ICustomTypeDescriptor.GetClassName (inherited from BusinessBase)GetClassName