Mindscape LightSpeed - User Reference & API Documentation
Entity Class
API ReferenceMindscape.LightSpeedEntity
The non-generic entity abstract base class. Never derive directly from this class but from Entity<(Of <(TId>)>).
Declaration Syntax
C#Visual Basic
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
Entity()()()
Initializes a new instance of the Entity class.

Entity(Boolean)
Initializes a new instance of the Entity class.

AfterLoad()()()
Called immediately after an Entity is loaded from the database.

Attribute(String)
Returns a PathExpression representing a given attribute path string.

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.

EntityState
The current dirty state of the entity.

EntityStateChanged
Occurs when the EntityState of the Entity changes.

Error
Gets an error message indicating what is wrong with this object.

Errors
The current collection of ValidationErrors for this object.

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).

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).

Get<(Of <(TEntity>)>)(EntityCollection<(Of <(TEntity>)>))
Gets the specified EntityCollection<(Of <(TEntity>)>) ensuring that the collection is loaded.

Get<(Of <(TThrough, TTarget>)>)(ThroughAssociation<(Of <(TThrough, TTarget>)>))
Gets the specified ThroughAssociation<(Of <(TThrough, TTarget>)>) ensuring that the underlying collection is loaded.

Get<(Of <(TEntity>)>)(EntityHolder<(Of <(TEntity>)>))
Gets an associated Entity from the supplied EntityHolder<(Of <(TEntity>)>) ensuring the the Entity is loaded.

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(String)
Return trueTruetrue if the named value object attribute has been loaded.

IsValid
Returns trueTruetrue if this object is valid.

Item[([(String])])
Gets the error message for the property with the given name.

OnDeserialization(Object)
Runs when the entire object graph has been deserialized.

OnEntityStateChanged(EntityStateChangedEventArgs)
Called when the EntityState of the Entity changes.

OnPropertyChanged(String)
Fires the PropertyChanged event.

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.

OnValidate()()()
Called by Validate()()(); override to perform custom validation.

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.

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.

Set<(Of <(TField>)>)(TField%, TField)
Sets the specified field.

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.

Set<(Of <(TEntity>)>)(EntityHolder<(Of <(TEntity>)>), TEntity)
Sets an associated entity field value.

ToString()()()
Returns a String that represents the current Object.
(Overrides Object.ToString()()().)
Validate()()()
Validates this instance.

Validating
Occurs before this entity is validated. Hook to perform custom pre-validation processing or optionally cancel the validation operation.

Inheritance Hierarchy

Assembly: Mindscape.LightSpeed (Module: Mindscape.LightSpeed) Version: 1.2.1393.0 (1.2.1393.0)