Knight Data Access Layer
GetCompositeKeyValues<T> Method




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class : GetCompositeKeyValues<T> Method
Generic class type
An object instance
Table mapping
Get a list of the values from the object that make up the composite primaryKey
Syntax
Public Function GetCompositeKeyValues(Of T As {Class, New})( _
   ByVal entity As T, _
   ByVal table As Table _
) As Dictionary(Of String,Object)
Dim instance As ObjectCrud
Dim entity As T
Dim table As Table
Dim value As Dictionary(Of String,Object)
 
value = instance.GetCompositeKeyValues(Of T)(entity, table)
public Dictionary<string,object> GetCompositeKeyValues<T>( 
   T entity,
   Table table
)
where T: class, new()
public: Dictionary<string*,Object*>* GetCompositeKeyValues<T>( 
   T* entity,
   Table* table
) 
where T: ref class, gcnew()
public:
Dictionary<String^,Object^>^ GetCompositeKeyValuesgeneric<typename T>
( 
   T^ entity,
   Table^ table
) 
where T: ref class, gcnew()

Parameters

entity
An object instance
table
Table mapping

Type Parameters

T
Generic class type
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