The Entity type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Entity | Overloaded. |
Methods
Name | Description | |
---|---|---|
![]() | AfterLoad |
Called immediately after an Entity is loaded from the database.
|
![]() ![]() | Attribute | Overloaded. |
![]() | BeforeLoad |
Called immediately before an Entity is loaded from the database.
|
![]() | BeginEdit |
Begins an edit on this entity.
|
![]() | CancelEdit |
Discards changes since the last BeginEdit()()() call.
|
![]() | EndEdit |
Pushes changes since the last BeginEdit()()()
or AddNew()()() call into the underlying object.
|
![]() | GeneratedId |
Generates an id for this entity.
|
![]() | Get | Overloaded. |
![]() | GetId |
Gets the unique id of this entity.
|
![]() | GetSearchData |
Get the free text data to be indexed when using the LightSpeed search engine API.
By default this method will return a concatenation of field values attributed with the
Indexed attribute. Override to provide custom data for this entity's index data.
|
![]() | Initialize |
Initializes the Entity. Normally this method is called automatically.
However, VB.NET users should call this method explicitly as discussed in
Entity(Boolean) |
![]() | IsLoaded |
Return trueTruetruetrue (True in Visual Basic) if the named value object attribute has been loaded.
|
![]() | OnDeserialization |
Runs when the entire object graph has been deserialized.
|
![]() | OnEntityStateChanged |
Called when the EntityState of the Entity changes.
|
![]() | OnPropertyChanged |
Fires the PropertyChanged event.
|
![]() | OnSaving |
Raises the Saving event. This method is called just before
an entity is saved to the database (create or update). Override to perform
custom save processing or optionally cancel the save operation.
|
![]() | OnValidate |
Called by Validate()()(); override to perform custom validation.
|
![]() | OnValidating |
Raises the Validating event. This method is called just before
an entity is validated. Override to perform custom pre-validation processing
or optionally cancel the validation operation.
|
![]() | Set | Overloaded. |
![]() | ToString | (Overrides Object..::.ToString()()().) |
![]() | Validate |
Validates this instance.
|
Properties
Name | Description | |
---|---|---|
![]() | ChangeTracker |
Gets the ChangeTracker associated with this entity.
|
![]() | EntityState |
The current dirty state of the entity.
|
![]() | Error |
Gets an error message indicating what is wrong with this object.
|
![]() | Errors |
The current collection of ValidationErrors for this object.
|
![]() | IsDeserializing |
Indicates if the entity is currently being deserialized
|
![]() | IsValid |
Returns trueTruetruetrue (True in Visual Basic) if this object is valid.
|
![]() | Item |
Gets the error message for the property with the given name.
|
![]() | UnitOfWork |
Gets the IUnitOfWork with which the entity is associated,
if any.
|
Events
Name | Description | |
---|---|---|
![]() | EntityStateChanged |
Occurs when the EntityState of the Entity changes.
|
![]() | PropertyChanged |
Occurs when a property value changes.
|
![]() | Saving |
Occurs before this entity is saved to the database (create or update).
Hook to perform custom save processing or optionally cancel the save operation.
|
![]() | Validating |
Occurs before this entity is validated. Hook to perform custom
pre-validation processing or optionally cancel the validation operation.
|