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
Syntaxpublic static IEnumerable<TSource> Preload<TSource>(
this IEnumerable<TSource> source,
ILazyProperty lazyProperty
)
where TSource : DomainObject
<ExtensionAttribute>
Public Shared Function Preload(Of TSource As DomainObject) (
source As IEnumerable(Of TSource),
lazyProperty As ILazyProperty
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
where TSource : DomainObject
static IEnumerable<TSource>^ Preload(
IEnumerable<TSource>^ source,
ILazyProperty^ lazyProperty
)
[<ExtensionAttribute>]
static member Preload :
source : IEnumerable<'TSource> *
lazyProperty : ILazyProperty -> IEnumerable<'TSource> when '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:
IEnumerableTSourceUsage 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