Click or drag to resize

IModelBase Interface

IModelBase defines common operations used by the main objects like Contact, Person, Project, Sale, Appointment, Document.

Namespace:  SuperOffice.COM.Application
Assembly:  SOCRM.Interop (in SOCRM.Interop.dll) Version: 8.0.0.0
Syntax
public interface IModelBase

The IModelBase type exposes the following members.

Properties
  NameDescription
Public propertyChanged
has record been changed since read?
Public propertyCreatedAssociate
The user that created the object
Public propertyCreatedDate
The date the object was saved to the database.
Public propertyIdentity
The primary key on the primary table. Is zero for new objects. Is set when an object is saved.
Public propertyIsAvailable
is record available in db?
Public propertyIsRequiredFilled
Are all the required fields filled out? Can we save the record?
Public propertyIsValid
does the record exist?
Public propertyUpdatedAssociate
The last user to modify the object
Public propertyUpdatedDate
The date of the most recent update.
Top
Methods
  NameDescription
Public methodCancelChanges
Undo any changes made since the object was loaded.
Public methodChangeIdentity
Loads a different record into the object. Causes changes to the existing object to be saved first.
Public methodDelete
Delete the object from the database. May throw an error if you are not allowed to delete the object.
Public methodSave
Persist the object to the database. May throw an error if you are not allowed to save changes to the object.
Public methodSetDefaults
Populate the object with default values, such as setting the owner to the current user.
Top
See Also