Knight Data Access Layer
MaintenanceFields Property (DataHelper)
Example 




KellermanSoftware.NetDataAccessLayer Namespace > DataHelper Class : MaintenanceFields Property
A list of the names maintenance fields that will be filled in automatically such as CreateDate, UpdateDate, CreateUser
Syntax
Public Overridable Property MaintenanceFields As List(Of MaintenanceField)
Dim instance As DataHelper
Dim value As List(Of MaintenanceField)
 
instance.MaintenanceFields = value
 
value = instance.MaintenanceFields
public virtual List<MaintenanceField> MaintenanceFields {get; set;}
public: __property virtual List<MaintenanceField*>* get_MaintenanceFields();
public: __property virtual void set_MaintenanceFields( 
   List<MaintenanceField*>* value
);
public:
virtual 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

DataHelper Class
DataHelper Members