Click or drag to resize

IAdoKeyResolverTModel Interface

Key resolver service

Namespace: SanteDB.Persistence.Data.Services.Persistence
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public interface IAdoKeyResolver<TModel> : IAdoKeyResolver

Type Parameters

TModel

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

The IAdoKeyResolverTModel type exposes the following members.

Methods
 NameDescription
Public methodGetKeyExpression Get the expression that can be used to fetch the key for the model
Top
Remarks
The key resolver service is used when related entities are persisted in a context where only one of a particular relationship can exist at the same time. The GetKeyExpression(TModel) is intended to return the LINQ expression to filter the existing dataset to determine if the specified object already exists. The TModel should always be an IDbIdentified instance which has an actual primary key (surrogate key) and should not be used on objects which have composite keys. If using this resolver implementation to resolve a IAnnotatedResource instance then the same applies.
See Also