Click or drag to resize

PersonPersistenceService Class

Persistence service which is responsible for managing persons
Inheritance Hierarchy

Namespace: SanteDB.Persistence.Data.Services.Persistence.Entities
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public class PersonPersistenceService : EntityDerivedPersistenceService<Person, DbPerson>

The PersonPersistenceService type exposes the following members.

Constructors
 NameDescription
Public methodPersonPersistenceService Creates a dependency injected
Top
Properties
 NameDescription
Public propertyDbType Gets the database type
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public propertyModelType Gets the model type
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public propertyProvider The provider
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public propertyQueryPersistence Get the query persistence service
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public propertyServiceName Gets the service name
(Inherited from BasePersistenceServiceTModel, TDbModel)
Top
Methods
 NameDescription
Protected methodAfterPersisted After the object is persisted
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodApplyDefaultQueryFilters Apply default query filters to the query provided by the caller
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodBeforePersisting Prepare references
(Overrides EntityDerivedPersistenceServiceTEntityBeforePersisting(DataContext, TEntity))
Public methodCount Count the
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodDelete(Guid) Perform a delete of the specified object
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodDelete(Guid, TransactionMode, IPrincipal) Delete the specified object
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodDelete(DataContext, Guid, DeleteMode, Boolean) ADO non-generic delete
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodDeleteAll Delete all objects according to the current DataPersistenceControlContext
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodDoConvertToDataModel Convert model to a TDbModel
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodDoConvertToInformationModel Convert the data model back to information model
(Inherited from EntityDerivedPersistenceServiceTEntity)
Protected methodDoConvertToInformationModelEx Perform the mapping of the instance to appropriate class
(Overrides EntityDerivedPersistenceServiceTEntityDoConvertToInformationModelEx(DataContext, DbEntityVersion, Object))
Protected methodDoCopyVersionSubTableInternal Perform a copy of the existing version inforamtion to a new version
(Inherited from EntityDerivedPersistenceServiceTEntity, TDbEntitySubTable)
Protected methodDoDeleteAllInternal Obsolete all objects
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoDeleteAllModel Do the deletion all model objects which match
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodDoDeleteFreeTextIndexInternal The object key is being purged - delete freetext entries for the object.
(Inherited from EntityDerivedPersistenceServiceTEntity)
Protected methodDoDeleteInternal Perform an obsoletion of the object in the datamodel
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoDeleteModel Perform the actual obsolete of a model object
(Inherited from EntityDerivedPersistenceServiceTEntity)
Protected methodDoDeleteReferencesInternal Perform a delete references
(Inherited from EntityDerivedPersistenceServiceTEntity)
Protected methodDoGetInternal Perform a GET internal
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoGetModel Perform a get operation returning a model
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodDoInsertInternal Perform an insert on the specified object
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoInsertModel Insert the model object (in this case an entity)
(Overrides EntityDerivedPersistenceServiceTEntity, TDbEntitySubTableDoInsertModel(DataContext, TEntity))
Protected methodDoQueryInternal Perform a query for the specified object
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodDoQueryInternalAsTReturn Perform the query however return a custom TReturn. This function allows you to modify the query instructions before sending query to the database
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodDoQueryModel Perform query model
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoTouchModel This method creates a new version from the old
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoUpdateInternal Perform a versioned update
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodDoUpdateModel Perform an update on the model
(Overrides EntityDerivedPersistenceServiceTEntity, TDbEntitySubTableDoUpdateModel(DataContext, TEntity))
Protected methodEnsureExistsTData Ensure that the object exists in the database
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecuteQueryOrm Execute the specified query on the specified object
(Inherited from EntityDerivedPersistenceServiceTEntity, TDbEntitySubTable)
Public methodExists(DataContext, Guid) True if the object exists in the database
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodExists(DataContext, Guid, Boolean) Return true if the specified object exists
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGet(Guid) Gets the specified object
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodGet(DataContext, Guid) Gets the specified identified object
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodGet(Guid, NullableGuid, IPrincipal) Primary GET function for the data persistence layer
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodGetAdHocCacheKey Get the ad-hoc cache key
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodGetCurrentVersionFilter Return sql statement for version filter
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetKeyExpression Get the expression that can be used to fetch the key for the model
(Inherited from EntityDerivedPersistenceServiceTEntity)
Public methodGetReferencedObjects
(Inherited from EntityDerivedPersistenceServiceTEntity)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInsert(Object) Insert the specified object into the context
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodInsert(DataContext, IdentifiedData) Insert the specified object into the database
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodInsert(TModel, TransactionMode, IPrincipal) Perform an insert operation
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodMapExpressionTResult Map the sorting expression
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodQuery(Expression) Perform the specified query
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodQuery(ExpressionFuncTModel, Boolean, IPrincipal) Executes the specified query returning the query set
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodQuery(Expression, Int32, NullableInt32, Int32) Query the specified data store
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodQuery(ExpressionFuncTModel, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) Query the specified repository
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodQuery(ExpressionFuncTModel, Boolean, Guid, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) Query legacy interface (query by id)
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodToModelInstance(DataContext, Object) Convert the specified object to model
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodToModelInstance(Object, DataContext) Convert an instance to model
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTouch(DataContext, Guid) Touch the specified object
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodTouch(Guid, TransactionMode, IPrincipal) Touch the object with key but don't update it
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodTryGetKeyResolverTTarget Get the key resolver for TTarget
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodTryGetSubclassPersister Try to resolve a persister by class concept key
(Inherited from EntityDerivedPersistenceServiceTEntity)
Public methodUpdate(Object) Updates the provided object to match in the data store
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodUpdate(DataContext, IdentifiedData) Update the specified object in the database context
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public methodUpdate(TModel, TransactionMode, IPrincipal) Perform the actual update
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected methodUpdateInternalAssociationsTAssociativeTable Update the internal
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodUpdateInternalVersoinedAssociationsTAssociativeTable Update the internal
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodUpdateModelAssociationsTModelAssociation Update associated entities
(Inherited from IdentifiedDataPersistenceServiceTModel, TDbModel)
Protected methodUpdateModelVersionedAssociationsTModelAssociation Update associated entities
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Public methodValidate Perform validation on the specified objectToValidate
(Inherited from EntityDerivedPersistenceServiceTEntity)
Protected methodValidateCacheItem Validate the cacheEntry matches the version information in the database from dataModel
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Protected methodVerifyEntityTToVerify Verify identities on the specified entity
(Inherited from VersionedDataPersistenceServiceTModel, TDbModel, TDbKeyModel)
Top
Events
 NameDescription
Public eventDeleted Fired after deleted
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventDeleting Fired before delete
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventInserted Fired after inserting has completed
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventInserting Fired when inserting
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventProgressChanged Fired when progress changes
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventQueried Fired after data has been queried
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventQuerying Fired prior to data querying
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventRetrieved Fired after data is retrieved
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventRetrieving Fired when data is being retrieved
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventUpdated Fired after updating
(Inherited from BasePersistenceServiceTModel, TDbModel)
Public eventUpdating Fired prior to updating
(Inherited from BasePersistenceServiceTModel, TDbModel)
Top
Fields
 NameDescription
Protected fieldm_adhocCache Ad-hoc caching service
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_configuration Configuration reference
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_dataCacheService Data caching service
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_localizationService Localization service
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_modelMapper Model mapper
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_queryPersistence Query persistence service
(Inherited from BasePersistenceServiceTModel, TDbModel)
Protected fieldm_tracer Get tracer for the specified persistence class
(Inherited from BasePersistenceServiceTModel, TDbModel)
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 MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also