Class JoinRecord
Represents a parent-child relationship between two entities.
TIP: The ParentID and ChildID switches around for many-to-many relationships depending on the side of the relationship you're accessing.
Implements
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: MongoDB.Entities
Assembly: MongoDB.Entities.dll
Syntax
public class JoinRecord : Entity, IEntity
Properties
ChildID
The ID of the child IEntity in one-to-many relationships and the ID of the inverse side IEntity in many-to-many relationships.
Declaration
[AsObjectId]
public string ChildID { get; set; }
Property Value
Type | Description |
---|---|
String |
ParentID
The ID of the parent IEntity for both one-to-many and the owner side of many-to-many relationships.
Declaration
[AsObjectId]
public string ParentID { get; set; }
Property Value
Type | Description |
---|---|
String |