Class BusinessEntity

A BusinessEntity is an individual instance of a data entity served up by
BusinessObjects. For instance, a name BusiessObject may generate a PersonEntity.
Note that all business objects can operate without the use of an entity object.
However, Entity objects make using business objects much more straightforward.

System.Object
  EPS.Business.BusinessObjects.BusinessEntity

public abstract class BusinessEntity : object, IBusinessEntity,
   IDisposable,
   IDeletable,
   ISavable,
   IVerifyable,
   IDataBindingRefresher,
   INotifyPropertyChanged

Class Members

MemberDescription
BeforeRemove This event fires before the entity is verified
BeforeSave This event fires before the entity is saved
BeforeVerify This event fires before the entity is verified
DataSourceChanged Event that indicates that data within the object has been updated
DataSourceChangedWithDetails Event that indicates that data within the object has been updated
PropertyChanged This event fires whenever a property on this control changes
Removed This event fires after the entity is verified
Saved This event fires every time an entity is saved
Verified This event fires after the entity is verified
AtomicSave Saves all the specified business entities within an atomic operation
public static bool AtomicSave( BusinessEntity[] entities );

public static bool AtomicSave( BusinessEntity[] entities,
bool verifyBeforeSave );

Clone Creates a copy of the current business entity
public IBusinessEntity Clone();
Delete Performs a delete operation by calling Remove() internally
public sealed bool Delete();
Dispose Implementation of IDisposable, in particualr the Dispose() method.
public sealed void Dispose();
GetBusinessObject This method generates the appropriate business object for the current entity.
public abstract IBusinessObject GetBusinessObject();
GetInternalData Returns the data set used internally.
public sealed DataSet GetInternalData();
GetInternalFieldName Returns the internal (mapped) field name and table name
public virtual string GetInternalFieldName( string exposedFieldName,
string exposedTableName );
GetInternalTableName Returns the internal (mapped) table name
public virtual string GetInternalTableName( string exposedTableName );
GetRawData Returns all the internal data as an XML string.
public sealed string GetRawData();
IgnoreIsDirty Sets the entity to appear not dirty, even if there are changes in the data.
public sealed void IgnoreIsDirty();
IsFieldNull Returns whether or not that field's value is currently null/nothing
public sealed bool IsFieldNull( string fieldName );
Remove Removes (deletes) the current entity
public virtual bool Remove();
Save Saves the current data
public virtual bool Save();

public virtual bool Save( IBusinessObject businessObject );

Verify Verifies the current data
public virtual void Verify();

public virtual void Verify( Type ruleType );

AssociatedBusinessObject Internal reference to the business object associated with this entity
BrokenRules Broken business rules collection
EntityState State of the current entity
ID Primary key of the current entity (string)
IsDirty Indicates whether the objects data contains any chances, such as
LoadState Data load state of the entity
PK Primary key of the current entity (Guid)
PKInteger Primary key of the current entity (int)
PKString Primary key of the current entity (string)
PrimaryKeyType Primary Key Type used by this entity

Requirements

Namespace: EPS.Business.BusinessObjects
Assembly: BUSINESSOBJECTS.DLL


  Last Updated: 5/23/2007 | © , 2007