IDataPersistenceService{TData}
IDataPersistenceService<TData>
in assembly SanteDB.Core.Api version 3.0.1980.0
Summary
Represents a data persistence service which is capable of storing and retrieving data to/from a data store
Events
Event | Type | Description |
---|---|---|
Inserted | EventHandler<DataPersistedEventArgs<TData>> | Occurs when inserted. |
Inserting | EventHandler<DataPersistingEventArgs<TData>> | Occurs when inserting. |
Updated | EventHandler<DataPersistedEventArgs<TData>> | Occurs when updated. |
Updating | EventHandler<DataPersistingEventArgs<TData>> | Occurs when updating. |
Deleted | EventHandler<DataPersistedEventArgs<TData>> | Occurs when obsoleted. |
Deleting | EventHandler<DataPersistingEventArgs<TData>> | Occurs when obsoleting. |
Queried | EventHandler<QueryResultEventArgs<TData>> | Occurs when queried. |
Querying | EventHandler<QueryRequestEventArgs<TData>> | Occurs when querying. |
Retrieving | EventHandler<DataRetrievingEventArgs<TData>> | Data is being retrieved |
Retrieved | EventHandler<DataRetrievedEventArgs<TData>> | Fired when data has been retrieved |
Operations
Operation | Response/Return | Input/Parameter | Description |
---|---|---|---|
Insert | TData | TData data TransactionMode transactionMode IPrincipal principal | Insert the specified data. |
Update | TData | TData data TransactionMode transactionMode IPrincipal principal | Update the specified data |
Delete | TData | Guid key TransactionMode transactionMode IPrincipal principal | Delete the specified identified data |
Get | TData | Guid key Nullable<Guid> versionKey IPrincipal principal | Get the object with identifier . |
Query | IQueryResultSet<TData> | Expression<Func<TData,Boolean>> query IPrincipal principal | Query for whose current version matches |
Query | IEnumerable<TData> | Expression<Func<TData,Boolean>> query Int32 offset Nullable<Int32> count Int32& totalResults IPrincipal principal ModelSort`1[] orderBy | Query for whose current version matches |
Count | Int64 | Expression<Func<TData,Boolean>> query IPrincipal authContext | Performs a fast count |
Implementations
UpstreamDiagnosticRepository - (SanteDB.Client)
Upstream diagnostic repository
Service Registration
ADO.NET Audit Repository - (SanteDB.Persistence.Auditing.ADO)
Represents a service which is responsible for the storage of audits
Service Registration
BaseEntityDataPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
Represents a persistence service which has behaviors to properly persist BaseEntityData
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
BasePersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
Base persistence services
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
IdentifiedDataPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
This persistence class represents a persistence service which is capable of storing and maintaining an IdentifiedData instance and its equivalent IDbIdentified
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
NonVersionedDataPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
A class which persists non-versioned data (which has updated timestamps)
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
VersionedAssociationPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
Abstract class for versioned associations
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
VersionedDataPersistenceService<TModel,TDbModel,TDbKeyModel> - (SanteDB.Persistence.Data)
Persistence service which handles versioned objects
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
SecurityApplicationPersistenceService - (SanteDB.Persistence.Data)
A persistence service that handles security applications
Service Registration
SecurityChallengePersistenceService - (SanteDB.Persistence.Data)
Persistence service that stores and retrieves security challenges
Service Registration
SecurityDevicePersistenceService - (SanteDB.Persistence.Data)
Persistence service that works with SecurityUser instances
Service Registration
SecurityPolicyPersistenceService - (SanteDB.Persistence.Data)
Persistence service that works with SecurityPolicy objects
Service Registration
SecurityProvenancePersistenceService - (SanteDB.Persistence.Data)
Security provenance persistence service
Service Registration
SecurityRolePersistenceService - (SanteDB.Persistence.Data)
Persistence service that works with SecurityApplication objects
Service Registration
SecurityUserPersistenceService - (SanteDB.Persistence.Data)
Persistence service that works with SecurityApplication objects
Service Registration
MailboxMessagePersistenceService - (SanteDB.Persistence.Data)
Represents a persistence service which can persist the assocation between a mail message and mailbox
Service Registration
MailboxPersistenceService - (SanteDB.Persistence.Data)
Persistence service that can persist and handle mailboxes
Service Registration
MailMessagePersistenceService - (SanteDB.Persistence.Data)
Mail message persistence service which can handles the persistence of MailMessage with DbMailMessage
Service Registration
ApplicationEntityPersistenceService - (SanteDB.Persistence.Data)
Application entity persistence serivce for application entities
Service Registration
ContainerPersistenceService - (SanteDB.Persistence.Data)
Represents a persistence service that stores/reads containers
Service Registration
DeviceEntityPersistenceService - (SanteDB.Persistence.Data)
Device entity persistence serivce for device entities
Service Registration
EntityAddressComponentPersistenceService - (SanteDB.Persistence.Data)
Entity address component persistence
Service Registration
EntityAddressPersistenceService - (SanteDB.Persistence.Data)
A persistence service which operates on EntityAddress
Service Registration
EntityAssociationPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
A generic implementation of the version association which points at an act
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
EntityDerivedPersistenceService<TEntity,TDbTopLevelTable,TDbEntitySubTable> - (SanteDB.Persistence.Data)
Entity derived persistence service which is responsible for persisting entities which have an intermediary table
Description
This class is used for higher level entities where the entity is comprised of three sub-tables where links to DbEntityVersion via
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
EntityDerivedPersistenceService<TEntity,TDbEntitySubTable> - (SanteDB.Persistence.Data)
Entity derived persistence service with one sub entity table
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
EntityDerivedPersistenceService<TEntity> - (SanteDB.Persistence.Data)
Persistence service that is responsible for storing and retrieving entities
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
EntityExtensionPersistenceService - (SanteDB.Persistence.Data)
Entity extension persistence service
Service Registration
EntityIdentifierPersistenceService - (SanteDB.Persistence.Data)
Persistence service for entity identifiers
Service Registration
EntityNameComponentPersistenceService - (SanteDB.Persistence.Data)
Entity name component persistence
Service Registration
EntityNamePersistenceService - (SanteDB.Persistence.Data)
A persistence service which operates on EntityAddress
Service Registration
EntityNotePersistenceService - (SanteDB.Persistence.Data)
Persistence service for entity notes
Service Registration
EntityPersistenceService - (SanteDB.Persistence.Data)
An persistence service that handles Entity
Service Registration
EntityRelationshipPersistenceService - (SanteDB.Persistence.Data)
A persistence service which handles entity relationships
Service Registration
EntityTagPersistenceService - (SanteDB.Persistence.Data)
Entity tag persistence
Service Registration
EntityTelecomPersistenceService - (SanteDB.Persistence.Data)
A persistence service that operates on telecoms
Service Registration
ManufacturedMaterialPersistenceService - (SanteDB.Persistence.Data)
A persistence service which is responsible for managing manufactured materials
Service Registration
MaterialPersistenceService - (SanteDB.Persistence.Data)
An EntityDerivedPersistenceService`1 which stores and manages entities
Service Registration
NonPersonLivingSubjectPersistenceService - (SanteDB.Persistence.Data)
Persistence service which is responsible for management of non-person living subjects (like animals, food, substances, viruses, etc.)
Service Registration
OrganizationPersistenceService - (SanteDB.Persistence.Data)
A persistence service which is able to persist and load Organization
Service Registration
PatientPersistenceService - (SanteDB.Persistence.Data)
Persistence service which handles the storage of Patient resources
Service Registration
PersonDerivedPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
A persistence service which is derived from a person persistence
Description
This class exists to ensure that LanguageCommunication is properly inserted on sub-classes of the Person class
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
PersonLanguageCommunicationPersistenceService - (SanteDB.Persistence.Data)
Persistence service for language of communication
Service Registration
PersonPersistenceService - (SanteDB.Persistence.Data)
Persistence service which is responsible for managing persons
Service Registration
PlacePersistenceService - (SanteDB.Persistence.Data)
A persistence service class which stores and retrieves places
Service Registration
PlaceServicePersistenceService - (SanteDB.Persistence.Data)
Place vs/ service persistence manager
Service Registration
ProviderPersistenceService - (SanteDB.Persistence.Data)
Persistence service which handles provider classes
Service Registration
UserEntityPersistenceService - (SanteDB.Persistence.Data)
Persistence service which stores and manages
Service Registration
AssigningAuthorityPersistenceService - (SanteDB.Persistence.Data)
Assigning authority persistence
Service Registration
CodeSystemPersistenceService - (SanteDB.Persistence.Data)
Code system persistence service
Service Registration
ConceptClassPersistenceService - (SanteDB.Persistence.Data)
Concept class persistence services
Service Registration
ConceptNamePersistenceService - (SanteDB.Persistence.Data)
Concept name persistence services
Service Registration
ConceptPersistenceService - (SanteDB.Persistence.Data)
Persistence service for concepts
Service Registration
ConceptReferencePersistenceBase<TModel,TDbModel> - (SanteDB.Persistence.Data)
Represents the concept relationship persistence service
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ConceptReferenceTermPersistenceService - (SanteDB.Persistence.Data)
Concept to Reference term persistence service
Service Registration
ConceptRelationshipPersistenceService - (SanteDB.Persistence.Data)
Concept relationship persistence service
Service Registration
ConceptRelationshipTypePersistenceService - (SanteDB.Persistence.Data)
Concept relationship type persistnece
Service Registration
ConceptSetCompositionPersistenceService - (SanteDB.Persistence.Data)
Concept set composition persistence
Service Registration
ConceptSetPersistenceService - (SanteDB.Persistence.Data)
ConceptSet persistence services for ADO
Service Registration
ExtensionTypePersistenceService - (SanteDB.Persistence.Data)
Extension type persistence
Service Registration
GeoTagPersistenceService - (SanteDB.Persistence.Data)
GEO Tag Persistence
Service Registration
IdentityDomainPersistenceService - (SanteDB.Persistence.Data)
Assigning authority persistence service
Service Registration
ProtocolPersistenceService - (SanteDB.Persistence.Data)
Protocol persistence services
Service Registration
ReferenceTermNamePersistenceService - (SanteDB.Persistence.Data)
A persistence service which stores and manages reference term display names
Service Registration
ReferenceTermPersistenceService - (SanteDB.Persistence.Data)
Persistence service for reference terms.
Service Registration
TemplateDefinitionPersistenceService - (SanteDB.Persistence.Data)
Template definition persistence services
Service Registration
BundlePersistenceService - (SanteDB.Persistence.Data)
Represents a persistence service that wraps and persists the objects in a bundle
Service Registration
ActAssociationPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
A generic implementation of the version association which points at an act
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ActDerivedPersistenceService<TAct,TDbTopLevelTable,TDbActSubTable> - (SanteDB.Persistence.Data)
Entity derived persistence service which is responsible for persisting entities which have an intermediary table
Description
This class is used for higher level entities where the entity is comprised of three sub-tables where links to DbActVersion via
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ActDerivedPersistenceService<TAct,TDbActSubTable> - (SanteDB.Persistence.Data)
An act derived persistence service where the act has a sub-table storing child data
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ActDerivedPersistenceService<TAct> - (SanteDB.Persistence.Data)
Persistence service that is responsible for the storing and retrieving of acts
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ActExtensionPersistenceService - (SanteDB.Persistence.Data)
Entity extension persistence service
Service Registration
ActIdentifierPersistenceService - (SanteDB.Persistence.Data)
Persistence service for act identifiers
Service Registration
ActNotePersistenceService - (SanteDB.Persistence.Data)
Persistence service for act notes
Service Registration
ActParticipationPersistenceService - (SanteDB.Persistence.Data)
Persistence service between act and act relationship
Service Registration
ActPersistenceService - (SanteDB.Persistence.Data)
Persistence service which manages acts
Service Registration
ActProtocolPersistenceService - (SanteDB.Persistence.Data)
Act Protocol persistence services
Service Registration
ActRelationshipPersistenceService - (SanteDB.Persistence.Data)
Persistence service between act and act relationship
Service Registration
ActTagPersistenceService - (SanteDB.Persistence.Data)
A tag persistence service for ActTags
Service Registration
CarePathwayDefinitionPersistenceService - (SanteDB.Persistence.Data)
Persistence service for care pathway
Service Registration
CarePlanPersistenceService - (SanteDB.Persistence.Data)
Persistence service which stores care plans
Description
The care plan storage has no specific storage requirements for care plans
Service Registration
CodedObservationPersistenceService - (SanteDB.Persistence.Data)
A ActDerivedPersistenceService`2 which stores coded observations
Service Registration
ControlActPersistenceService - (SanteDB.Persistence.Data)
Persistence service which stores controlling acts
Service Registration
NarrativePersistenceService - (SanteDB.Persistence.Data)
Persistence service that handles narratives
Service Registration
ObservationDerivedPersistenceService<TModel,TDbModel> - (SanteDB.Persistence.Data)
Represents a persistence service which stores and retrieves observation based table
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
ObservationPersistenceService - (SanteDB.Persistence.Data)
Generic observation persistence service to handle Observation calls
Service Registration
PatientEncounterArrangementPersistenceService - (SanteDB.Persistence.Data)
Patient encounter arrangement persistence service
Service Registration
PatientEncounterPersistenceService - (SanteDB.Persistence.Data)
Patient encounter based persistence service
Service Registration
ProcedurePersistenceService - (SanteDB.Persistence.Data)
Persistence service which can store and retrieve patient procedures
Service Registration
ProtocolPersistenceService - (SanteDB.Persistence.Data)
A IDataPersistenceService`1 which is responsible for the storage and maintenance of Protocol definitions
Service Registration
QuantityObservationPersistenceService - (SanteDB.Persistence.Data)
An observation persistence service which can manage observations which are quantities (value + unit)
Service Registration
SubstanceAdministrationPersistenceService - (SanteDB.Persistence.Data)
Class which can persist and manage substance administrations in the database
Service Registration
TextObservationPersistenceService - (SanteDB.Persistence.Data)
Persistence service which can store and retrieve text observations
Service Registration
E-Mail Diagnostic (Bug) Report Submission - (SanteDB.Persistence.Diagnostics.Email)
TODO: Document this
Service Registration
JIRA Based Diagnostic (Bug) Report Submissions - (SanteDB.Persistence.Diagnostics.Jira)
TODO: Document this
Service Registration
MdmEntityRelationshipPersistenceProvider - (SanteDB.Persistence.MDM)
Relationship persistence provider passed through to underlying types
Service Registration
Example Implementation
References
Last updated