Click or drag to resize

ObjectCollectionTObject Class

Contains a list of objects, which is fully loaded from a query on first enumeration
Inheritance Hierarchy
SystemObject
  Aloe.SystemFrameworks.DomainObjectCollectionTObject
    Aloe.SystemFrameworks.DomainChildCollectionTChildObject

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public class ObjectCollection<TObject> : IEnumerable<TObject>, 
	IEnumerable
where TObject : DomainObject

Type Parameters

TObject
The type of the stored objects

The ObjectCollectionTObject type exposes the following members.

Constructors
  NameDescription
Public methodObjectCollectionTObject
Create new ObjectList, which will be loaded from the default Data for the object type, filtered by the specified expression.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of objects.
Public propertyFilterExpression
Gets the filter expression.
Public propertyIsLoaded
Gets a value indicating whether the object list is loaded.
Public propertyItem
Gets the element at the specified index
Public propertyQuery
Gets the query.
Public propertyTransaction
Gets the transaction.
Top
Methods
  NameDescription
Public methodRefresh
Loads or reloads the contents of the list from the query
Public methodRefreshLocal
Refreshes the object list from the locally loaded objects in the transaction.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodPreloadTObject(ILazyProperty)Overloaded.
Preloads the value of the specified lazy property for the objects in the sequence.
(Defined by LinqExtensions.)
Public Extension MethodPreloadTObject, TResult(ExpressionFuncTObject, TResult)Overloaded.
Preloads the full object state for all objects returned by applying the expression to each element in source. This is still a research method, which will be renamed later to .Preload().
(Defined by LinqExtensions.)
Public Extension MethodCode exampleSplitTObject
Splits the input IEnumerable in chunks with the specified size.
(Defined by Splitter.)
Public Extension MethodTopologicalSortTObject
Topological sort based on item dependencies.
(Defined by RepositoryExtensions.)
Top
Remarks
ObjectCollection is useful for holding lists of objects that are fully loaded in the memory on first enumeration. It is useful for lists of child objects and other short lists of objects because all objects are loaded in memory. The list will not be loaded initially. To load it, call Refresh or enumerate it
See Also