Table of Contents

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 : Entity, 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.

[AsBsonId]
public object ChildID { get; set; }

Property Value

object

ParentID

The ID of the parent IEntity for both one-to-many and the owner side of many-to-many relationships.

[AsBsonId]
public object ParentID { get; set; }

Property Value

object