Class PersistentAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Indicates that a property, field or class will be stored in a persistent data store and specifies the target column or table name.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface, Inherited = true)]
public sealed class PersistentAttribute : Attribute
- Inheritance
-
PersistentAttribute
- Inherited Members
Constructors
PersistentAttribute()
Initializes a new instance of the PersistentAttribute class.
public PersistentAttribute()
PersistentAttribute(string)
Initializes a new instance of the PersistentAttribute class with the specified name for the table or column.
public PersistentAttribute(string mapTo)
Parameters
mapTo
stringA string value which specifies the name of the table or column to map a class or property/field to. This value is assigned to the PersistentAttribute.MapTo property.
Fields
AttributeType
Gets the type of the current instance.
public static readonly Type AttributeType
Field Value
Properties
MapTo
Gets the name of the table or column to which to map a class or a property/field.
public string MapTo { get; }