 | IAdoKeyResolverTModel Interface |
Key resolver service
Namespace: SanteDB.Persistence.Data.Services.PersistenceAssembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntaxpublic interface IAdoKeyResolver<TModel> : IAdoKeyResolver
Public Interface IAdoKeyResolver(Of TModel)
Inherits IAdoKeyResolver
generic<typename TModel>
public interface class IAdoKeyResolver : IAdoKeyResolver
type IAdoKeyResolver<'TModel> =
interface
interface IAdoKeyResolver
endType Parameters
- TModel
[Missing <typeparam name="TModel"/> documentation for "T:SanteDB.Persistence.Data.Services.Persistence.IAdoKeyResolver`1"]
The IAdoKeyResolverTModel type exposes the following members.
Methods| | Name | Description |
|---|
 | GetKeyExpression |
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