Click or drag to resize

IRepositoryServiceTModel Interface

Represents a repository service

Namespace: SanteDB.Core.Services
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public interface IRepositoryService<TModel> : IServiceImplementation
where TModel : IIdentifiedResource

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Core.Services.IRepositoryService`1"]

The IRepositoryServiceTModel type exposes the following members.

Properties
 NameDescription
Public propertyServiceName Gets the service name
(Inherited from IServiceImplementation)
Top
Methods
 NameDescription
Public methodDelete Delete the object according to the current DeleteMode or according to server configuration
Public methodFind Finds the specified data where the current version matches the query provided
Public methodGet(Guid) Gets the specified model data
Public methodGet(Guid, Guid) Gets the specified model data at the specified version
Public methodInsert Inserts the specified model information
Public methodSave Inserts or updates the specified data
Top
Remarks

In the SanteDB Software Architecture the repository service layer is the layer responsible for coordinating business rules, privacy, auditing, and other activities from the messaging or other services in the SanteDB iCDR or dCDR.

Repository services should be the primary method of interacting with the SanteDB server infrastructure, as it indicates a user, application or device process is not intending to modify underlying persistence data directly (as would be the case for a system process), rather it wishes SanteDB to execute all validation and rules as normal.

See Also