The abstract base class inherited by all entities.

C# | Visual Basic |
[SerializableAttribute] public abstract class Entity<TId> : Entity where TId : struct, new()
<SerializableAttribute> _ Public MustInherit Class Entity(Of TId As {Structure, New}) _ Inherits Entity

- TId
- The type of the entity's id field.

All Members | Constructors | Methods | Properties | Events | |
Icon | Member | Description |
---|---|---|
![]() | Entity<(Of <(TId>)>)()()() |
Initializes a new instance of the Entity<(Of <(TId>)>) class.
|
![]() | Entity<(Of <(TId>)>)(Boolean) |
Initializes a new instance of the Entity<(Of <(TId>)>) class.
|
![]() | AfterLoad()()() |
Called immediately after an Entity is loaded from the database.
(Inherited from Entity.) |
![]() | BeforeLoad()()() |
Called immediately before an Entity is loaded from the database.
(Inherited from Entity.) |
![]() | BeginEdit()()() |
Begins an edit on this entity.
(Inherited from Entity.) |
![]() | CancelEdit()()() |
Discards changes since the last BeginEdit()()() call.
(Inherited from Entity.) |
![]() | EndEdit()()() |
Pushes changes since the last BeginEdit()()()
or AddNew()()() call into the underlying object.
(Inherited from Entity.) |
![]() | EntityState |
The current dirty state of the entity.
(Inherited from Entity.) |
![]() | EntityStateChanged |
Occurs when the EntityState of the Entity changes.
(Inherited from Entity.) |
![]() | Error |
Gets an error message indicating what is wrong with this object.
(Inherited from Entity.) |
![]() | Errors |
The current collection of ValidationErrors for this object.
(Inherited from Entity.) |
![]() | Get<(Of <(TField>)>)(TField%) |
Gets the referenced field ensuring it is loaded. Use of this method is only
required when using lazy-loaded value object fields (not associations).
(Inherited from Entity.) |
![]() | Get<(Of <(TField>)>)(TField%, String) |
Gets the referenced field ensuring it is loaded. Use of this method is only
required when using lazy-loaded value object fields (not associations).
(Inherited from Entity.) |
![]() | Get<(Of <(TEntity>)>)(EntityCollection<(Of <(TEntity>)>)) |
Gets the specified EntityCollection<(Of <(TEntity>)>) ensuring that
the collection is loaded.
(Inherited from Entity.) |
![]() | Get<(Of <(TThrough, TTarget>)>)(ThroughAssociation<(Of <(TThrough, TTarget>)>)) |
Gets the specified ThroughAssociation<(Of <(TThrough, TTarget>)>) ensuring that
the underlying collection is loaded.
(Inherited from Entity.) |
![]() | Get<(Of <(TEntity>)>)(EntityHolder<(Of <(TEntity>)>)) |
Gets an associated Entity from the supplied EntityHolder<(Of <(TEntity>)>)
ensuring the the Entity is loaded.
(Inherited from Entity.) |
![]() | Id |
Gets or sets id of this entity.
|
![]() | Initialize()()() |
Initializes the Entity. Normally this method is called automatically.
However, VB.NET users should call this method explicitly as discussed in
Entity(Boolean) (Inherited from Entity.) |
![]() | IsLoaded(String) |
Return trueTruetrue if the named value object attribute has been loaded.
(Inherited from Entity.) |
![]() | IsValid |
Returns trueTruetrue if this object is valid.
(Inherited from Entity.) |
![]() | Item[([(String])]) |
Gets the error message for the property with the given name.
(Inherited from Entity.) |
![]() | OnDeserialization(Object) |
Runs when the entire object graph has been deserialized.
(Inherited from Entity.) |
![]() | OnEntityStateChanged(EntityStateChangedEventArgs) |
Called when the EntityState of the Entity changes.
(Inherited from Entity.) |
![]() | OnPropertyChanged(String) |
Fires the PropertyChanged event.
(Inherited from Entity.) |
![]() | OnSaving(CancelEventArgs) |
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.
(Inherited from Entity.) |
![]() | OnValidate()()() |
Called by Validate()()(); override to perform custom validation.
(Inherited from Entity.) |
![]() | OnValidating(CancelEventArgs) |
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.
(Inherited from Entity.) |
![]() | PropertyChanged |
Occurs when a property value changes.
(Inherited from Entity.) |
![]() | 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.
(Inherited from Entity.) |
![]() | Set<(Of <(TField>)>)(TField%, TField) |
Sets the specified field.
(Inherited from Entity.) |
![]() | Set<(Of <(TField>)>)(TField%, TField, String) |
Sets the specified field. Use of this overload is only required if you
are calling other persistent attribute property setters within a single property setter.
(Inherited from Entity.) |
![]() | Set<(Of <(TEntity>)>)(EntityHolder<(Of <(TEntity>)>), TEntity) |
Sets an associated entity field value.
(Inherited from Entity.) |
![]() | ToString()()() | (Inherited from Entity.) |
![]() | Validate()()() |
Validates this instance.
(Inherited from Entity.) |
![]() | Validating |
Occurs before this entity is validated. Hook to perform custom
pre-validation processing or optionally cancel the validation operation.
(Inherited from Entity.) |