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: 2.2.1
Syntax
public interface IRepositoryService<TModel> : IServiceImplementation
where TModel : IdentifiedData

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 methodFind(ExpressionFuncTModel, Boolean)
Finds the specified data where the current version matches the query provided
Public methodFind(ExpressionFuncTModel, Boolean, Int32, NullableInt32, Int32, ModelSortTModel)
Finds the specified data with the specified control parameters
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 methodObsolete
Obsoletes the specified object
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