Persist.NET Documentation Class Library

PersistentObject Methods

The methods of the PersistentObject class are listed below. For a complete list of PersistentObject class members, see the PersistentObject Members topic.

Public Instance Methods

Delete Delete this object. This call delete also all the associated object marked as "DeleteAutomatic"
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Retrieve Retreive the object from database The primary key has to be set before calling this method
RetrieveAsProxy Retreive the object from database The primary key has to be set before calling this method
RetrieveAssociationOverloaded. Retrieve an assocation
RetrieveAssociationAsProxyOverloaded. Retrieve an assocation as proxy objects
Save Save this object. This call save also all the associated object marked as "SaveAutomatic" The object have to be flagged as Dirty to be saved.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

PersistentObject Class | Persist Namespace