Chili.Opf3 Send comments on this topic.
TimeStampAttribute Class
See Also  Members   Example 
Chili.Opf3.Concurrency.TimeStamp Namespace : TimeStampAttribute Class




This attribute is used to connect a member with the time stamp field of the TimeStampConcurrencyManager in the storage.

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class TimeStampAttribute 
   Inherits Attribute
Visual Basic (Usage)Copy Code
Dim instance As TimeStampAttribute
C# 
public sealed class TimeStampAttribute : Attribute 
Managed Extensions for C++ 
public __gc __sealed class TimeStampAttribute : public Attribute 
C++/CLI 
public ref class TimeStampAttribute sealed : public Attribute 

Example

The following example shows how to use the TimeStampAttribute in a persistent class.
C#Copy Code
             [Persistent("USER")] 
public class User 

    // ... Other code of the class. 
 
    [TimeStamp] 
                    [Field("TIME_STAMP")] 
    public string TimeStamp 
    { 
        // ... code of the property. 
    } 

    

Remarks

The TimeStampAttribute is used to connect a member of the persistent class with a field of the storage. The property is used as time stamp property for the TimeStampConcurrencyManager. Every time and update is performed the time stamp is checked of being changed. If the stamp changed the object was modified by somebody else in the mean time (in the time being in memory).

Inheritance Hierarchy

System.Object
   System.Attribute
      Chili.Opf3.Concurrency.TimeStamp.TimeStampAttribute

Requirements

Namespace: Chili.Opf3.Concurrency.TimeStamp

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also