IRepositoryServiceTModel Interface |
Namespace: SanteDB.Core.Services
public interface IRepositoryService<TModel> : IServiceImplementation where TModel : IdentifiedData
[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Core.Services.IRepositoryService`1"]
The IRepositoryServiceTModel type exposes the following members.
Name | Description | |
---|---|---|
ServiceName |
Gets the service name
(Inherited from IServiceImplementation.) |
Name | Description | |
---|---|---|
Find(ExpressionFuncTModel, Boolean) |
Finds the specified data where the current version matches the query provided
| |
Find(ExpressionFuncTModel, Boolean, Int32, NullableInt32, Int32, ModelSortTModel) |
Finds the specified data with the specified control parameters
| |
Get(Guid) |
Gets the specified model data
| |
Get(Guid, Guid) |
Gets the specified model data at the specified version
| |
Insert |
Inserts the specified model information
| |
Obsolete |
Obsoletes the specified object
| |
Save |
Inserts or updates the specified data
|
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.