Knight Data Access Layer
GetObjectMap<T> Method (IDataHelper)
Example 




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface : GetObjectMap<T> Method
Generic class type
Get the object map for the passed class. Useful for code generation or getting schema information.
Syntax
Function GetObjectMap(Of T As {Class, New})() As Table
Dim instance As IDataHelper
Dim value As Table
 
value = instance.GetObjectMap(Of T)()
Table GetObjectMap<T>()
where T: class, new()
Table* GetObjectMap<T>(); 
where T: ref class, gcnew()
Table^ GetObjectMapgeneric<typename T>
(); 
where T: ref class, gcnew()

Type Parameters

T
Generic class type
Example
//Get the current thread static safe instance of the helper
IDataHelper db = DataHelper.SessionFactory();
 
//Specify User Name and License Key from the receipt, leave blank for trial mode
//db.UserName = "John Smith 1234";
//db.LicenseKey = "asdfl219==";
 
Table table = db.GetObjectMap<Customer>();
'Get the current thread static safe instance of the helper
Dim db As IDataHelper = DataHelper.SessionFactory()
 
'Specify User Name and License Key from the receipt, leave blank for trial mode
'db.UserName = "John Smith 1234"
'db.LicenseKey = "asdfl219=="
 
Dim table As Table = db.GetObjectMap(Of Customer)()
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