Click or drag to resize

AdoRelationshipValidationProviderAddValidRelationshipTRelationship Method

Add a valid relationship between sourceClassKey and targetClassKey

Namespace: SanteDB.Persistence.Data.Services
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public 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.Persistence.Data.Services.AdoRelationshipValidationProvider.AddValidRelationship``1(System.Nullable{System.Guid},System.Nullable{System.Guid},System.Guid,System.String)"]

Return Value

RelationshipValidationRule
The created / configured relationship type

Implements

IRelationshipValidationProviderAddValidRelationshipTRelationship(NullableGuid, NullableGuid, Guid, String)
See Also