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




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

Parameters

propertyLambda

Type Parameters

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

BaseActiveRecord<T> Class
BaseActiveRecord<T> Members