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




KellermanSoftware.NetDataAccessLayer Namespace > BaseRepository<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 entity As T, _
   ByVal propertyLambda As Expression(Of Func(Of T,TC)) _
) As TC
Dim instance As BaseRepository(Of T)
Dim entity As T
Dim propertyLambda As Expression(Of Func(Of T,TC))
Dim value As TC
 
value = instance.GetLazyValue(Of TC)(entity, propertyLambda)
public TC GetLazyValue<TC>( 
   T entity,
   Expression<Func<T,TC>> propertyLambda
)
where TC: class, new()
public: TC* GetLazyValue<TC>( 
   T* entity,
   Expression<Func<T*,TC*>*>* propertyLambda
) 
where TC: ref class, gcnew()
public:
TC^ GetLazyValuegeneric<typename TC>
( 
   T^ entity,
   Expression<Func<T^,TC^>^>^ propertyLambda
) 
where TC: ref class, gcnew()

Parameters

entity
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

BaseRepository<T> Class
BaseRepository<T> Members