Click or drag to resize

LinqExtensionsPreloadTSource Method (IEnumerableTSource, ILazyProperty)

Preloads the value of the specified lazy property for the objects in the sequence.

Namespace:  Aloe.SystemFrameworks.Domain.LINQ
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static IEnumerable<TSource> Preload<TSource>(
	this IEnumerable<TSource> source,
	ILazyProperty lazyProperty
)
where TSource : DomainObject

Parameters

source
Type: System.Collections.GenericIEnumerableTSource
The source.
lazyProperty
Type: Aloe.SystemFrameworks.Domain.RepositoriesILazyProperty
The lazy property.

Type Parameters

TSource
The type of the source.

Return Value

Type: IEnumerableTSource

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also