Knight Data Access Layer
GetLazyValue<T,TC> Method (IDataHelper)




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface : GetLazyValue<T,TC> Method
Load a child or a parent by the property name lambda
Syntax
Function GetLazyValue
    (Of T As {Class, New},
     TC As {Class, New})( _
   ByVal currentObject As T, _
   ByVal propertyLambda As Expression(Of Func(Of T,TC)) _
) As TC
Dim instance As IDataHelper
Dim currentObject As T
Dim propertyLambda As Expression(Of Func(Of T,TC))
Dim value As TC
 
value = instance.GetLazyValue(Of T, TC)(currentObject, propertyLambda)
TC GetLazyValue<T,TC>( 
   T currentObject,
   Expression<Func<T,TC>> propertyLambda
)
where T: class, new()
where TC: class, new()
TC* GetLazyValue<T,TC>( 
   T* currentObject,
   Expression<Func<T*,TC*>*>* propertyLambda
) 
where T: ref class, gcnew()
where TC: ref class, gcnew()
TC^ GetLazyValuegeneric<typename T>
generic<typename TC>
( 
   T^ currentObject,
   Expression<Func<T^,TC^>^>^ propertyLambda
) 
where T: ref class, gcnew()
where TC: ref class, gcnew()

Parameters

currentObject
propertyLambda

Type Parameters

T
TC
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDataHelper Interface
IDataHelper Members