SaaS CMS has officially launched! Learn more now.

Class DynamicDataCollection<T>

Collection class that implements lazy loading of items from the Dynamic Data Store

Inheritance
System.Object
DynamicDataCollection<T>
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Namespace: EPiServer.Data.Dynamic.Internal
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public sealed class DynamicDataCollection<T> : Object, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

The System.Type of items in the collection

Constructors

DynamicDataCollection(IList<Identity>, DynamicDataStore, LoadAsObjectType)

Construct a new collection

Declaration
public DynamicDataCollection(IList<Identity> identities, DynamicDataStore store, LoadAsObjectType loadObjectsAs)
Parameters
Type Name Description
System.Collections.Generic.IList<Identity> identities

The identities of the items that the collection will contain

DynamicDataStore store

The store the collection items should be read from

LoadAsObjectType loadObjectsAs

How objects should be loaded

Methods

GetEnumerator()

Get a enumerator for the collection

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

An System.Collections.Generic.IEnumerator<> instance

Implements

System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable

Extension Methods