Class JoinRecord
- Namespace
- MongoDB.Entities
- Assembly
- MongoDB.Entities.dll
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.
public class JoinRecord : ObjectIdEntity, IEntity
- Inheritance
-
JoinRecord
- Implements
- Inherited Members
- Extension Methods
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.
Holds the stored (serialized) representation of the child entity's ID, whatever type that may be.
public BsonValue ChildID { get; set; }
Property Value
- BsonValue
ParentID
The ID of the parent IEntity for both one-to-many and the owner side of many-to-many relationships.
Holds the stored (serialized) representation of the parent entity's ID, whatever type that may be.
public BsonValue ParentID { get; set; }
Property Value
- BsonValue