Click or drag to resize

IEntity Interface

the entity (non typed business object) manage a information, and can have one or more detail

Namespace:  EBP.Api.Interfaces.Entity
Assembly:  EBP.Api.Common (in EBP.Api.Common.dll) Version: 1.0.2835.45 (1.0.2835.45)
Syntax
public interface IEntity : IApiEntity, 
	IDisposable, IEquatable<IProxy>

The IEntity type exposes the following members.

Properties
  NameDescription
Public propertyCreatedDate
Gets the Created Date
Public propertyCreatedUser
Gets the Created User
Public propertyEntityCaption
Gets the caption of the current entity, using the content
Public propertyEntityLabel
Gets the entity Label
Public propertyErrors
Gets the collection of errors
Public propertyIsDeleted
Gets if the mode matches a deleted mode
Public propertyIsEmptyLine
Indicates if the entity is an empty line of an entity collection (created in auto following the entityCollection options)
Public propertyMembers
List of the members. It allows to acces to members with the name
Public propertyMode
Gets the entity mode
Public propertyModifiedDate
Gets the Modified Date
Public propertyModifiedUser
Gets the Modified User
Public propertyOwnerEntity
Gets the main entity that own all this items/collection
Public propertyParent
Gets the parent entity collection, that own this item
Public propertyReadOnly
Gets/Sets if the entity is in read only mode, to preserve from data changing
Public propertySilent
Get/Sets if the entity is in silent mode
Public propertyStates
Gets the entity states
Top
Methods
  NameDescription
Public methodAppend
Method for add a new entity to the media. Update the entity to its default value.
Public methodCancel
Cancel the edit mode without saving, and reload the entity
Public methodCancelEdit
Cancel the edit mode without saving, without reload the entity
Public methodCheckData
Check the data of the entity
Public methodClear
Clear the entity content and reinitialize it to the default value
Public methodClone
Clone an entity
Public methodCopyTo(IEntity)
Copy the entity content to another entity
Public methodCopyTo(IEntity, Boolean)
Copy the entity content to another entity
Public methodDelete
Method for delete a existing entity from the media
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodEdit
Method to pass in edit mode a existing entity in the media (for exemple, add a lock for database)
Public methodGetExtension
Gets the extension.
(Inherited from IApiEntity.)
Public methodLoad
Method for loading the entity
Public methodSave
Method for saving the entity to the media
Public methodSetComplexMemberReadOnly
Set the read only property to a member
Public methodShowMessage
Method to display a message. The message is displayed if the UI has connected to the ShowMessage event
(Inherited from IApiEntity.)
Top
Events
  NameDescription
Public eventModeChanged
Event raised on mode changed
Top
See Also