Ensures that a relationship for a particular parent id and entity type exists in a relationships collection. Works directly with the database, use the other overload to work with in-memory entities.
Namespace: MonoSoftware.MonoX.BusinessLayerAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
SnRelationshipEntity EnsureRelationshipExists(
Guid parentId,
int entityType
) |
Visual Basic |
---|
Function EnsureRelationshipExists (
parentId As Guid,
entityType As Integer
) As SnRelationshipEntity |
Visual C++ |
---|
SnRelationshipEntity^ EnsureRelationshipExists(
Guid parentId,
int entityType
) |
F# |
---|
abstract EnsureRelationshipExists :
parentId : Guid *
entityType : int -> SnRelationshipEntity
|
Return Value
Type:
SnRelationshipEntityAn existing (or newly created) relationship.
See Also