Skip to main content
.NET Framework 4.5.2+

PersistentBase Members

Serves as a base for classes that represent persistent objects.

Constructors

Name Description
PersistentBase(Session, XPClassInfo) Initializes a new instance of the PersistentBase class.

Fields

Name Description
DisableSmartCreateAssociationListStrategy static Controls how the XPCustomMemberInfo.GetValue method creates a collection object when the XPCustomMemberInfo.MemberType property is set to typeof(XPCollection<T>) or typeof(IList<T>).
UseUnsafeCreateCollectionStrategy static Specifies whether the return value type of the XPCustomMemberInfo.GetValue method can be different than the XPCustomMemberInfo.MemberType property value.

Properties

Name Description
ClassInfo Gets a value that provides access to the metadata information of a class gathered via Reflection.
Fields static Gets an object that contains field identifiers for Simplified Criteria Syntax.
IsDeleted Indicates whether the current persistent object is marked as deleted.
IsLoading Indicates whether the object is currently being initialized.
Session Gets the session used to load and save persistent objects.

Methods

Name Description
AfterConstruction() Invoked when the current object is about to be initialized after its creation.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the current object has the same settings as the specified object.
GetCustomPropertyStore(Object) static This member supports the internal infrastructure and isn’t intended to be used directly from your code.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current PersistentBase object.
GetModificationsStore(Object) static Returns an object that stores information about the modified properties when the Session.TrackPropertiesModifications option is enabled.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnChanged(String, Object, Object) protected Invoked after an object’s property has been changed.
OnDeleting() protected Invoked when the current object is about to be deleted.
OnSaving() protected Invoked when the current object is about to be saved.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string which represents the current object.
See Also