Click or drag to resize

IRelationshipValidationProviderAddValidRelationshipTRelationship Method

Add a valid relationship between sourceClassKey and targetClassKey

Namespace: SanteDB.Core.Services
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
RelationshipValidationRule AddValidRelationship<TRelationship>(
	Guid? sourceClassKey,
	Guid? targetClassKey,
	Guid relationshipTypeKey,
	string description
)
where TRelationship : ITargetedAssociation

Parameters

sourceClassKey  NullableGuid
The source of the relationship
targetClassKey  NullableGuid
The target of the relationship
relationshipTypeKey  Guid
The relationship type key
description  String
The textual description of the validation rule

Type Parameters

TRelationship

[Missing <typeparam name="TRelationship"/> documentation for "M:SanteDB.Core.Services.IRelationshipValidationProvider.AddValidRelationship``1(System.Nullable{System.Guid},System.Nullable{System.Guid},System.Guid,System.String)"]

Return Value

RelationshipValidationRule
The created / configured relationship type
See Also