QuickObjects.ObjectBase Send comments on this topic.
BaseBusinessObjectCollectionEnumerator Class
See Also  Members   Example 
Akal.QuickObjects.ObjectBase Namespace : BaseBusinessObjectCollectionEnumerator Class

BaseBusinessObjectCollectionEnumerator - This enumrator is used to traverse over a result set. A single instance of the business object is used to load values dynamically as a particular position is accessed. This helps in keeping the memory footprint low and does not require a result set to be represented in multiple object instances. For example, if you result set contains 500 rows the result set is not represented by 500 instances of the business objects, and rather a smart loading technique is used. The smart loading technique used avoids duplicate memory usage and still provides easy access to each row of the result set using the object instance.

Syntax

C# 
public class BaseBusinessObjectCollectionEnumerator 

Example

How the Enumerator is used.
C#Copy Code
    using (Contacts contacts = new Contacts()) 
    { 
        contacts.Find(); 
        foreach (Contacts c in contacts.List) 
        { 
            // in this caseobject instance in c is the same instance asin contacts variable but the values currently loaded are for the current rows values. 
        } 
    } 
    

Inheritance Hierarchy

System.Object
   Akal.QuickObjects.ObjectBase.BaseBusinessObjectCollectionEnumerator

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also