Click or drag to resize

ExtensionMethodsLoadPropertyTSource, TReturn Method (TSource, ExpressionFuncTSource, TReturn, Boolean)

Load collection of TReturn from TSource

Namespace:  SanteDB.Core.Model
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public static TReturn LoadProperty<TSource, TReturn>(
	this TSource me,
	Expression<Func<TSource, TReturn>> selector,
	bool forceReload = false
)
where TSource : IIdentifiedEntity

Parameters

me
Type: TSource

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

selector
Type: System.Linq.ExpressionsExpressionFuncTSource, TReturn

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

forceReload (Optional)
Type: SystemBoolean

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

Type Parameters

TSource

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

TReturn

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

Return Value

Type: TReturn

[Missing <returns> documentation for "M:SanteDB.Core.Model.ExtensionMethods.LoadProperty``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``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