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




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class : GetLazyValue<T,TC> Method
Load a child or a parent by the property name lambda
Syntax
Public 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 ObjectCrud
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)
public TC GetLazyValue<T,TC>( 
   T currentObject,
   Expression<Func<T,TC>> propertyLambda
)
where T: class, new()
where TC: class, new()
public: TC* GetLazyValue<T,TC>( 
   T* currentObject,
   Expression<Func<T*,TC*>*>* propertyLambda
) 
where T: ref class, gcnew()
where TC: ref class, gcnew()
public:
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

ObjectCrud Class
ObjectCrud Members