Click or drag to resize

ExtensionMethodsLoadCollectionTSource, TReturn Method (TSource, ExpressionFuncTSource, IEnumerableTReturn, Boolean)

Load collection of TReturn from TSource

Namespace:  SanteDB
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static IEnumerable<TReturn> LoadCollection<TSource, TReturn>(
	this TSource me,
	Expression<Func<TSource, IEnumerable<TReturn>>> selector,
	bool forceReload = false
)
where TSource : IAnnotatedResource

Parameters

me
Type: TSource

[Missing <param name="me"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

selector
Type: System.Linq.ExpressionsExpressionFuncTSource, IEnumerableTReturn

[Missing <param name="selector"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

forceReload (Optional)
Type: SystemBoolean

[Missing <param name="forceReload"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

Type Parameters

TSource

[Missing <typeparam name="TSource"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

TReturn

[Missing <typeparam name="TReturn"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

Return Value

Type: IEnumerableTReturn

[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``2(``0,System.Linq.Expressions.Expression{System.Func{``0,System.Collections.Generic.IEnumerable{``1}}},System.Boolean)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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