Chili.Opf3 Send comments on this topic.
PersistentRights Enumeration
See Also   Example
Chili.Opf3 Namespace : PersistentRights Enumeration




The member of this enumeration mark a persistent object with certain rights.

Syntax

Visual Basic (Declaration) 
Public Enum PersistentRights 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As PersistentRights
C# 
public enum PersistentRights : Enum 
Managed Extensions for C++ 
__value public enum PersistentRights : public Enum 
C++/CLI 
public enum class PersistentRights : public Enum 

Members

MemberDescription
None No right is granted to the persistent object. I can't be loaded, inserted, updated or deleted.
Load The persistent object is only allowed to be loaded.
Insert The persistent object is only allowed to be inserted.
Update The persistent object is only allowed to be updated.
Delete The persistent object is only allowed to be deleted.
All The persistent object has all rights.

Example

The following example shows an example persistent that is only allowed to be loaded.
C#Copy Code
            [Persistent("USER", Rights = PersistentRights.Load)] 
public class User 

    private string _name; 
     
    [Field("NAME")] 
    public string Name 
    { 
        get { return _name; } 
        set { _name = value; } 
    } 
     
    // ... Other properties and fields. 

    

Remarks

This enumeration is used to mark persistent objects with certain rights. It allows to specify the rights of the persistent object. Some persistent objects may only be loaded and have no right to be saved or deleted from the storage. If the persistent object is marked with the Insert right it can't be loaded, deleted or updated. The enumeration contains an All flag which is the combination of all rights.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Chili.Opf3.PersistentRights

Requirements

Namespace: Chili.Opf3

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