Base |
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
[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Persistence.Data.Services.Persistence.BasePersistenceService`2"]
[Missing <typeparam name="TDbModel"/> documentation for "T:SanteDB.Persistence.Data.Services.Persistence.BasePersistenceService`2"]
The BasePersistenceServiceTModel, TDbModel type exposes the following members.
| Name | Description | |
|---|---|---|
| BasePersistenceServiceTModel, TDbModel | Base persistence service |
| Name | Description | |
|---|---|---|
| DbType | Gets the database type | |
| ModelType | Gets the model type | |
| Provider | The provider | |
| QueryPersistence | Get the query persistence service | |
| ServiceName | Gets the service name |
| Name | Description | |
|---|---|---|
| AfterPersisted | Called after the object is persisted - this allows implementations to change the object before it is returned | |
| BeforePersisting | Called before the object is persisted - this allows implementations to change the object before being persisted | |
| Count | Count the | |
| Delete(Guid) | Perform a delete of the specified object | |
| Delete(Guid, TransactionMode, IPrincipal) | Delete the specified object | |
| Delete(DataContext, Guid, DeleteMode, Boolean) | ADO non-generic delete | |
| DeleteAll | Delete all objects according to the current DataPersistenceControlContext | |
| DoConvertToDataModel | Convert to data model | |
| DoConvertToInformationModel | Convert to a database model | |
| DoDeleteAllInternal | Perform an obsoletion for all objects matching expression | |
| DoDeleteAllModel | Do the deletion all model objects which match | |
| DoDeleteFreeTextIndexInternal | The object key is being purged - delete freetext entries for the object. | |
| DoDeleteInternal | Perform an obsoletion of the specified object | |
| DoDeleteModel | Perform the actual obsolete of a model object | |
| DoDeleteReferencesInternal | The object key is being purged - delete all references for the object | |
| DoGetInternal | Perform an internal get operation | |
| DoGetModel | Perform a get operation returning a model | |
| DoInsertInternal | Perform the insertion of the model | |
| DoInsertModel | Perform the actual insert of a model object | |
| DoQueryInternal | Perform the query operation | |
| DoQueryModel | Perform a query by model object | |
| DoTouchModel | Perform a touch which updates the modification time | |
| DoUpdateInternal | Perform the actual update of information | |
| DoUpdateModel | Perform the actual update of a model object | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| ExecuteQueryOrm | Execute the specified query on the specified object | |
| Exists(DataContext, Guid) | True if the object exists in the database | |
| Exists(DataContext, Guid, Boolean) | Return true if the specified object exists | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| Get(Guid) | Gets the specified object | |
| Get(DataContext, Guid) | Gets the specified identified object | |
| Get(Guid, NullableGuid, IPrincipal) | Primary GET function for the data persistence layer | |
| GetAdHocCacheKey | Get the ad-hoc cache key | |
| GetCurrentVersionFilter | Apply any special versioning filters on the specified statement | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Insert(Object) | Insert the specified object into the context | |
| Insert(DataContext, IdentifiedData) | Insert the specified object into the database | |
| Insert(TModel, TransactionMode, IPrincipal) | Perform an insert operation | |
| MapExpressionTResult | Map the sorting expression | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Query(Expression) | Perform the specified query | |
| Query(ExpressionFuncTModel, Boolean, IPrincipal) | Executes the specified query returning the query set | |
| Query(Expression, Int32, NullableInt32, Int32) | Query the specified data store | |
| Query(ExpressionFuncTModel, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) | Query the specified repository | |
| Query(ExpressionFuncTModel, Boolean, Guid, Int32, NullableInt32, Int32, IPrincipal, ModelSortTModel) | Query legacy interface (query by id) | |
| ToModelInstance(DataContext, Object) | Convert the specified object to model | |
| ToModelInstance(Object, DataContext) | Convert an instance to model | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| Touch(DataContext, Guid) | Touch the specified object | |
| Touch(Guid, TransactionMode, IPrincipal) | Touch the object with key but don't update it | |
| TryGetKeyResolverTTarget | Get the key resolver for TTarget | |
| Update(Object) | Updates the provided object to match in the data store | |
| Update(DataContext, IdentifiedData) | Update the specified object in the database context | |
| Update(TModel, TransactionMode, IPrincipal) | Perform the actual update | |
| ValidateCacheItem | Validate the cacheEntry matches the version information in the database from dataModel |
| Name | Description | |
|---|---|---|
| Deleted | Fired after deleted | |
| Deleting | Fired before delete | |
| Inserted | Fired after inserting has completed | |
| Inserting | Fired when inserting | |
| ProgressChanged | Fired when progress changes | |
| Queried | Fired after data has been queried | |
| Querying | Fired prior to data querying | |
| Retrieved | Fired after data is retrieved | |
| Retrieving | Fired when data is being retrieved | |
| Updated | Fired after updating | |
| Updating | Fired prior to updating |
| Name | Description | |
|---|---|---|
| m_adhocCache | Ad-hoc caching service | |
| m_configuration | Configuration reference | |
| m_dataCacheService | Data caching service | |
| m_localizationService | Localization service | |
| m_modelMapper | Model mapper | |
| m_queryPersistence | Query persistence service | |
| m_tracer | Get tracer for the specified persistence class |
| Name | Description | |
|---|---|---|
| ConvertTReturn |
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) | |
| WithControl |
With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions) |