Knight Data Access Layer
MaintenanceFields Property (IDataHelper)
Example 




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface : MaintenanceFields Property
A list of the names maintenance fields that will be filled in automatically such as CreateDate, UpdateDate, CreateUser
Syntax
Property MaintenanceFields As List(Of MaintenanceField)
Dim instance As IDataHelper
Dim value As List(Of MaintenanceField)
 
instance.MaintenanceFields = value
 
value = instance.MaintenanceFields
List<MaintenanceField> MaintenanceFields {get; set;}
__property List<MaintenanceField*>* get_MaintenanceFields();
__property void set_MaintenanceFields( 
   List<MaintenanceField*>* value
);
property List<MaintenanceField^>^ MaintenanceFields {
   List<MaintenanceField^>^ get();
   void set (    List<MaintenanceField^>^ value);
}
Remarks
See also FillInMaintenanceFields
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==";
 
//Output the list of default maintenance fields
foreach (var field in db.MaintenanceFields)
{
    Console.WriteLine("Name: {0}, Type: {1}",field.Name,field.FieldType);
}
'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=="
 
'Output the list of default maintenance fields
For Each field In db.MaintenanceFields
    Console.WriteLine("Name: {0}, Type: {1}",field.Name,field.FieldType)
Next field
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