Click or drag to resize

Entity Class

Represents the base class of all entities (persons, places, things) in SanteDB
Inheritance Hierarchy
SystemObject
  SanteDB.Core.ModelIdentifiedData
    SanteDB.Core.ModelBaseEntityData
      SanteDB.Core.ModelVersionedEntityDataEntity
        SanteDB.Core.Model.EntitiesEntity
          More...

Namespace:  SanteDB.Core.Model.Entities
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public class Entity : VersionedEntityData<Entity>, 
	ITaggable, IExtendable, IIdentifiedEntity, ISecurable, IHasClassConcept, 
	IHasTypeConcept, IHasState, IHasTemplate, IHasIdentifiers, IHasRelationships

The Entity type exposes the following members.

Constructors
  NameDescription
Public methodEntity
Creates a new instance of the entity class
Top
Properties
  NameDescription
Public propertyAddresses
Gets a list of all addresses associated with the entity
Public propertyBatchOperation
Gets or sets the operation
(Inherited from IdentifiedData.)
Public propertyClassConcept
Class concept datal load property
Public propertyClassConceptKey
Class concept
Public propertyCreatedBy
Gets or sets the user that created this base data
(Inherited from BaseEntityData.)
Public propertyCreatedByKey
Gets or sets the security provenance object which represents the creation of this object
(Inherited from BaseEntityData.)
Public propertyCreationAct
Creation act reference
Public propertyCreationActKey
Creation act reference
Public propertyCreationTime
Gets or sets the time at which the data was created
(Inherited from BaseEntityData.)
Public propertyCreationTimeXml
Gets or sets the creation time as an ISO date format
(Inherited from BaseEntityData.)
Public propertyDeterminerConcept
Determiner concept
Public propertyDeterminerConceptKey
Determiner concept
Public propertyExtensions
Gets a list of all extensions associated with the entity
Public propertyIdentifiers
Gets the identifiers associated with this entity
Public propertyIsDelayLoadEnabled
True if the class is currently loading associations when accessed
(Inherited from IdentifiedData.)
Public propertyKey
Gets or sets the primary identifying UUID of this object
(Inherited from IdentifiedData.)
Public propertyLoadState
Gets or sets whether the object was partial loaded
(Inherited from IdentifiedData.)
Public propertyModifiedOn
Gets the time that the object was last modified (from base data, default to CreationTime)
(Inherited from BaseEntityData.)
Public propertyNames
Gets a list of all names associated with the entity
Public propertyNotes
Gets a list of all notes associated with the entity
Public propertyObsoletedBy
Gets or sets the user that obsoleted this base data
(Inherited from BaseEntityData.)
Public propertyObsoletedByKey
Gets or sets the security provenance object which represents the obsoletion of this data
(Inherited from BaseEntityData.)
Public propertyObsoletionTime
Gets or sets the time when the data is or will become invalid
(Inherited from BaseEntityData.)
Public propertyObsoletionTimeXml
Gets or sets the time that the data is no longer valid (was deleted/obsoleted) in ISO format
(Inherited from BaseEntityData.)
Public propertyParticipations
Gets the acts in which this entity participates
Public propertyPolicies
Gets or sets the security policy instances associated with the entity
Public propertyPreviousVersionKey
Gets or sets the UUID of the previous version of this record
(Inherited from VersionedEntityDataTHistoryModelType.)
Public propertyRelationships
Gets a list of all associated entities for this entity
Public propertyStatusConcept
Status concept id
Public propertyStatusConceptKey
Status concept id
Public propertyTag
Override the ETag
(Inherited from VersionedEntityDataTHistoryModelType.)
Public propertyTags
Gets a list of all tags associated with the entity
Public propertyTelecoms
Gets a list of all telecommunications addresses associated with the entity
Public propertyTemplate
Gets or sets the template definition
Public propertyTemplateKey
Gets the template key
Public propertyType
Gets the type registration of this object
(Inherited from IdentifiedData.)
Public propertyTypeConcept
Type concept identifier
Public propertyTypeConceptKey
Type concept identifier
Public propertyVersionKey
Gets or sets the UUID of the current version of this object
(Inherited from VersionedEntityDataTHistoryModelType.)
Public propertyVersionSequence
The sequence number of the version (for ordering)
(Inherited from VersionedEntityDataTHistoryModelType.)
Top
Methods
  NameDescription
Public methodAddAnnotation
Add an annotated object
(Inherited from IdentifiedData.)
Public methodAddExtension
Add an extension to this entity
Public methodAddPolicy
Add a policy to this entity
Public methodAddTag
Add a tag to this entity
Public methodClone
Clone this object
(Inherited from IdentifiedData.)
Public methodCopy
Copies the entity
Public methodCopyAnnotations
Copy annotations from another resource
(Inherited from IdentifiedData.)
Public methodDeepCopy
Provide a deep copy of the specified data
(Inherited from IdentifiedData.)
Protected methodDelayLoadTEntity
Get associated entity
(Inherited from IdentifiedData.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAnnotationsT
Get annotations of specified T
(Inherited from IdentifiedData.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLocked
Clone the specified data
(Inherited from IdentifiedData.)
Public methodGetPreviousVersion
Gets the previous version or loads it from the database if needed
(Inherited from VersionedEntityDataTHistoryModelType.)
Public methodGetTag
Get the specified tag
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasPolicy
Detects whether this object has a policy
Public methodIsEmpty
Determines w
(Inherited from IdentifiedData.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveAllTags
Remove tags matching predicate from the tag collection
Public methodRemoveAnnotation
Remove annotation
(Inherited from IdentifiedData.)
Public methodRemoveExtension
Remove the specified extension
Public methodRemoveTag
Remove the specified tagKey from this objects tags
Public methodSemanticEquals
Semantic equality function
(Overrides IdentifiedDataSemanticEquals(Object).)
Public methodSetPreviousVersion
Sets the previous version
(Inherited from VersionedEntityDataTHistoryModelType.)
Public methodShouldSerializeAddresses
Should serialize addresses
Public methodShouldSerializeBatchOperation
Should serialize batch operation
(Inherited from IdentifiedData.)
Public methodShouldSerializeCreatedByKey
True if key should be serialized
(Inherited from BaseEntityData.)
Public methodShouldSerializeCreationActKey
Should serialize creation act
Public methodShouldSerializeExtensions
Shoudl serialize extensions
Public methodShouldSerializeIdentifiers
Should serialize identifiers
Public methodShouldSerializeKey
True if key should be serialized
(Inherited from IdentifiedData.)
Public methodShouldSerializeModifiedOn
Never serialize modified on
(Inherited from IdentifiedData.)
Public methodShouldSerializeNames
Should serialize Names
Public methodShouldSerializeNotes
Should serialize notes
Public methodShouldSerializeObsoletedByKey
True if key should be serialized
(Inherited from BaseEntityData.)
Public methodShouldSerializeParticipations
Should serialize participations
Public methodShouldSerializePreviousVersionKey
Should serialize previous version?
(Inherited from VersionedEntityDataTHistoryModelType.)
Public methodShouldSerializeTags
Should serialize tags
Public methodShouldSerializeTelecoms
Should serialize telecoms
Public methodShouldSerializeTemplateKey
Should serialize template key
Public methodShouldSerializeTypeConceptKey
Should serialize type concept
Public methodToDisplay
Render the display of this entity
(Overrides IdentifiedDataToDisplay.)
Public methodToString
Represent the versioned data as a string
(Inherited from VersionedEntityDataTHistoryModelType.)
Public methodTryGetTag
Try to fetch the tag
Top
Fields
  NameDescription
Protected fieldm_annotations
A list of custom tags which were added to this object
(Inherited from IdentifiedData.)
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodCreateExtensions
Runs all registered extensions on the object
(Defined by ExtensionUtil.)
Public Extension MethodGetAddresses
Gets or loads addresses attached to an entity
(Defined by DelayLoadUtils.)
Public Extension MethodGetExtensions
Gets or loads extensions
(Defined by DelayLoadUtils.)
Public Extension MethodGetIdentifiers
Gets or loads identifiers
(Defined by DelayLoadUtils.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Public Extension MethodGetNames
Gets or loads names attached to an entity
(Defined by DelayLoadUtils.)
Public Extension MethodGetNotes
Gets or loads notes
(Defined by DelayLoadUtils.)
Public Extension MethodGetRelationships
Gets or loads relationships
(Defined by DelayLoadUtils.)
Public Extension MethodGetTags
Gets or loads tags
(Defined by DelayLoadUtils.)
Public Extension MethodGetTelecoms
Gets or loads telecoms attached to an entity
(Defined by DelayLoadUtils.)
Public Extension MethodLoadCollectionTReturn
Delay load property
(Defined by ExtensionMethods.)
Public Extension MethodLoadProperty(String, Boolean)Overloaded.
Delay load property
(Defined by ExtensionMethods.)
Public Extension MethodLoadPropertyTReturn(String, Boolean)Overloaded.
Delay load property
(Defined by ExtensionMethods.)
Public Extension MethodTryGetExisting
Try get by classifier
(Defined by ModelExtensions.)
Public Extension MethodUpdateParentKeys (Defined by ModelExtensions.)
Public Extension MethodWasLoaded
Returns true if the property has been loaded
(Defined by ExtensionMethods.)
Top
Remarks
In SanteDB, an entity represents a physical object which can be acted upon or can participate in an act.
See Also
Inheritance Hierarchy
SystemObject
  SanteDB.Core.ModelIdentifiedData
    SanteDB.Core.ModelBaseEntityData
      SanteDB.Core.ModelVersionedEntityDataEntity
        SanteDB.Core.Model.EntitiesEntity
          SanteDB.Core.Model.EntitiesApplicationEntity
          SanteDB.Core.Model.EntitiesDeviceEntity
          SanteDB.Core.Model.EntitiesMaterial
          SanteDB.Core.Model.EntitiesNonPersonLivingSubject
          SanteDB.Core.Model.EntitiesOrganization
          SanteDB.Core.Model.EntitiesPerson
          SanteDB.Core.Model.EntitiesPlace