 | ExtensionMethodsHasDirectOrParentRelationshipWith Method |
Checks whether
me has a direct relationship with
targetEntityKey or if there exists a relationship with
targetEntityKey via one of its
Parent associations
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static bool HasDirectOrParentRelationshipWith(
this Entity me,
Guid relationshipTypeKey,
Guid? targetEntityKey
)
<ExtensionAttribute>
Public Shared Function HasDirectOrParentRelationshipWith (
me As Entity,
relationshipTypeKey As Guid,
targetEntityKey As Guid?
) As Boolean
public:
[ExtensionAttribute]
static bool HasDirectOrParentRelationshipWith(
Entity^ me,
Guid relationshipTypeKey,
Nullable<Guid> targetEntityKey
)
[<ExtensionAttribute>]
static member HasDirectOrParentRelationshipWith :
me : Entity *
relationshipTypeKey : Guid *
targetEntityKey : Nullable<Guid> -> bool Parameters
- me Entity
- The object on which to check relationshipTypeKey
- relationshipTypeKey Guid
- The type of relationship that is being sought
- targetEntityKey NullableGuid
- The target entity with which me has a relationship and which the Parent should
be checked
Return Value
BooleanTrue if the relationship exists
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Entity. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also