Click or drag to resize

EntityObject Class

Entity objects represent objects with identity.
Inheritance Hierarchy

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public abstract class EntityObject : EditableDomainObject, 
	IEquatable<EntityObject>, ILazyObject, IFormattable

The EntityObject type exposes the following members.

Properties
  NameDescription
Public propertyChangingAttributes
Gets the attributes that are currently changing. Can be used in attribute change event handler to prevent stack overflow.
(Inherited from EditableDomainObject.)
Public propertyExtendedProperties
Extended properties contain temporary (not persisted) values in the object instance.
Public propertyId
The unique Id of the entity object
Public propertyIsGhost
Returns true when the object is a ghost object
(Overrides DomainObjectIsGhost.)
Public propertyIsLoaded
Gets a value indicating whether the associated data for this domain object is loaded.
Public propertyItemString
Gets or sets the value of a data attribute
(Inherited from DomainObject.)
Public propertyItemIDataAttribute
Gets or sets the value of a data attribute
(Inherited from DomainObject.)
Public propertyNoEvents
Turns on "No events" mode and returns a class, that will turn it off when Disposed. See remarks for more info.
(Inherited from DomainObject.)
Public propertyObjectState
Gets the state of the domain object.
(Inherited from EditableDomainObject.)
Public propertyRepository
The repository used to persist the entity object
Public propertyTransaction
The transaction to which this object is attached
(Inherited from DomainObject.)
Top
Methods
  NameDescription
Public methodDelete
Deletes the domain object.
(Overrides EditableDomainObjectDelete.)
Public methodDuplicateObject
Creates a copy of the object.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides DomainObjectEquals(Object).)
Public methodEquals(EntityObject)
Indicates whether the current object is equal to another object of the same type.
Public methodExecuteBusinessRules
Executes all business rules for the object for the specified BusinessEvent. The validation fails are saved in the event.
(Inherited from EditableDomainObject.)
Public methodGetAggregateParent
Gets the aggregate parent of this entity object. If this is the aggregate root the return value is null.
Public methodGetAggregateRoot
Gets the aggregate root entity object. If the entity does not have aggregate parent reference aggregate root is this entity object.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides DomainObjectGetHashCode.)
Public methodGetRelatedObjectsForValidation
Gets the related objects which would need validation upon validation of this object.
Public methodIssueWarning(String)
Issues a warning with the specified message.
(Inherited from EditableDomainObject.)
Public methodIssueWarning(ExpressionFuncString, Object)
Issues a warning with the specified message. The message can contain standard string placeholders.
(Inherited from EditableDomainObject.)
Public methodRefresh
Refreshes this instance with data from data source. Only objects with ObjectState equal to Unchanged are refreshed.
Public methodToString
Returns a String that represents this instance.
(Overrides DomainObjectToString.)
Public methodToString(String)
Returns a String that represents this instance.
Public methodTryGet
Tries to get the specified attribute and returns it or null, when it is not found.
(Inherited from DomainObject.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns true if the two entity objects have the same Id.
Public operatorStatic memberInequality
Returns true if the two entity objects have the different Ids.
Top
Extension Methods
  NameDescription
Public Extension MethodFillAggregateMissingDefaults
Recalculates the default values for all objects in the aggregate.
(Defined by EntityObjectExtensions.)
Public Extension MethodFillMissingDefaults
Executes the late default expression defined in each attribute (if any) if the current value is null or equal to a constant default.
(Defined by EntityObjectExtensions.)
Public Extension MethodFormatString
Converts the object to string based on the format specified.
(Defined by FormatStringExtensions.)
Public Extension MethodRecalculateMasterAttributes
Recalculates the values of a master attributes in a master-detail relationship.
(Defined by EntityObjectExtensions.)
Public Extension MethodRecalculateMissingValues
Recalculates the missing values using the first reactive expression of the attributes.
(Defined by EntityObjectExtensions.)
Top
Remarks
The most important aspect of the entity objects is that they have an unique Id. The entity objects are persisted in entity repositories, which have specialized methods to work with entity Id values. Entity objects are distinguished, based solely on their identity.
See Also