ILazyObject Interface |
Namespace: Aloe.SystemFrameworks.Domain
The ILazyObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | CheckPreloadStatusFirst |
Gets a value indicating whether the framework should first check the preload status
for each object, passing to preload only the not-loaded objects.
|
![]() | SplitObjectList |
Gets a value indicating whether the framework should split the object list in manageable chunks,
before passing it to the PreloadFromDataSourceTElement(IEnumerableILazyObject) method.
|
Name | Description | |
---|---|---|
![]() | NeedsLoading |
Returns true when the speicfied ILazyObject needs loading.
|
![]() | PreloadFromDataSourceTElement |
Performs a physical preload of the delay-loaded property values for the specified list of preloadable objects.
|
Delayed-loaded properties are properties, which load their value for some object upon first access. Preloading is performance technique, used for delayed-loaded properties, which allows mass loading of the values of such properties.
The primary usage of preloading is before accessing a delay-loaded property in a loop. For example:
//.CustomProperties is a delay-loaded property customers.Preload(c => c.CustomProperties); //this will run fast, because .CustomProperties are preloaded foreach(var c in customers) { Console.WriteLine(c.CustomProperties); }