Click or drag to resize

BasePersistenceServiceTModel, TDbModel Class

Base persistence services
Inheritance Hierarchy
SystemObject
  SanteDB.Persistence.Data.Services.PersistenceBasePersistenceServiceTModel, TDbModel
    SanteDB.Persistence.Data.Services.PersistenceIdentifiedDataPersistenceServiceTModel, TDbModel

Namespace: SanteDB.Persistence.Data.Services.Persistence
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public abstract class BasePersistenceService<TModel, TDbModel> : IDataPersistenceService<TModel>, 
	IServiceImplementation, IDataPersistenceServiceEx<TModel>, IReportProgressChanged, IAdoPersistenceProvider<TModel>, 
	IAdoPersistenceProvider, IMappedQueryProvider<TModel>, IDataPersistenceService
where TModel : new(), IdentifiedData
where TDbModel : class, new(), IDbIdentified

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Persistence.Data.Services.Persistence.BasePersistenceService`2"]

TDbModel

[Missing <typeparam name="TDbModel"/> documentation for "T:SanteDB.Persistence.Data.Services.Persistence.BasePersistenceService`2"]

The BasePersistenceServiceTModel, TDbModel type exposes the following members.

Constructors
 NameDescription
Public methodBasePersistenceServiceTModel, TDbModel Base persistence service
Top
Properties
 NameDescription
Public propertyDbType Gets the database type
Public propertyModelType Gets the model type
Public propertyProvider The provider
Public propertyQueryPersistence Get the query persistence service
Public propertyServiceName Gets the service name
Top
Methods
 NameDescription
Protected methodAfterPersisted Called after the object is persisted - this allows implementations to change the object before it is returned
Protected methodBeforePersisting Called before the object is persisted - this allows implementations to change the object before being persisted
Public methodCount Count the
Public methodDelete(Guid) Perform a delete of the specified object
Public methodDelete(Guid, TransactionMode, IPrincipal) Delete the specified object
Public methodDelete(DataContext, Guid, DeleteMode, Boolean) ADO non-generic delete
Public methodDeleteAll Delete all objects according to the current DataPersistenceControlContext
Protected methodDoConvertToDataModel Convert to data model
Protected methodDoConvertToInformationModel Convert to a database model
Protected methodDoDeleteAllInternal Perform an obsoletion for all objects matching expression
Protected methodDoDeleteAllModel Do the deletion all model objects which match
Protected methodDoDeleteFreeTextIndexInternal The object key is being purged - delete freetext entries for the object.
Protected methodDoDeleteInternal Perform an obsoletion of the specified object
Protected methodDoDeleteModel Perform the actual obsolete of a model object
Protected methodDoDeleteReferencesInternal The object key is being purged - delete all references for the object
Protected methodDoGetInternal Perform an internal get operation
Protected methodDoGetModel Perform a get operation returning a model
Protected methodDoInsertInternal Perform the insertion of the model
Protected methodDoInsertModel Perform the actual insert of a model object
Protected methodDoQueryInternal Perform the query operation
Protected methodDoQueryModel Perform a query by model object
Protected methodDoTouchModel Perform a touch which updates the modification time
Protected methodDoUpdateInternal Perform the actual update of information
Protected methodDoUpdateModel Perform the actual update of a model object
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
Public methodExists(DataContext, Guid) True if the object exists in the database
Public methodExists(DataContext, Guid, Boolean) Return true if the specified object exists
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
Public methodGet(DataContext, Guid) Gets the specified identified object
Public methodGet(Guid, NullableGuid, IPrincipal) Primary GET function for the data persistence layer
Protected methodGetAdHocCacheKey Get the ad-hoc cache key
Public methodGetCurrentVersionFilter Apply any special versioning filters on the specified statement
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInsert(Object) Insert the specified object into the context
Public methodInsert(DataContext, IdentifiedData) Insert the specified object into the database
Public methodInsert(TModel, TransactionMode, IPrincipal) Perform an insert operation
Public methodMapExpressionTResult Map the sorting expression
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodQuery(Expression) Perform the specified query
Public methodQuery(ExpressionFuncTModel, Boolean, IPrincipal) Executes the specified query returning the query set
Public methodQuery(Expression, Int32, NullableInt32, Int32) Query the specified data store
Public methodQuery(ExpressionFuncTModel, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) Query the specified repository
Public methodQuery(ExpressionFuncTModel, Boolean, Guid, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) Query legacy interface (query by id)
Public methodToModelInstance(DataContext, Object) Convert the specified object to model
Public methodToModelInstance(Object, DataContext) Convert an instance to model
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTouch(DataContext, Guid) Touch the specified object
Public methodTouch(Guid, TransactionMode, IPrincipal) Touch the object with key but don't update it
Protected methodTryGetKeyResolverTTarget Get the key resolver for TTarget
Public methodUpdate(Object) Updates the provided object to match in the data store
Public methodUpdate(DataContext, IdentifiedData) Update the specified object in the database context
Public methodUpdate(TModel, TransactionMode, IPrincipal) Perform the actual update
Protected methodValidateCacheItem Validate the cacheEntry matches the version information in the database from dataModel
Top
Events
 NameDescription
Public eventDeleted Fired after deleted
Public eventDeleting Fired before delete
Public eventInserted Fired after inserting has completed
Public eventInserting Fired when inserting
Public eventProgressChanged Fired when progress changes
Public eventQueried Fired after data has been queried
Public eventQuerying Fired prior to data querying
Public eventRetrieved Fired after data is retrieved
Public eventRetrieving Fired when data is being retrieved
Public eventUpdated Fired after updating
Public eventUpdating Fired prior to updating
Top
Fields
 NameDescription
Protected fieldm_adhocCache Ad-hoc caching service
Protected fieldm_configuration Configuration reference
Protected fieldm_dataCacheService Data caching service
Protected fieldm_localizationService Localization service
Protected fieldm_modelMapper Model mapper
Protected fieldm_queryPersistence Query persistence service
Protected fieldm_tracer Get tracer for the specified persistence class
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