Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    Entity
    JoinRecord
    Implements
    IEntity
    Inherited Members
    Entity.ID
    Entity.GenerateNewID()
    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

    Implements

    IEntity

    Extension Methods

    Extensions.InitManyToMany<TChild>(IEntity, Expression<Func<Many<TChild>>>, Expression<Func<TChild, Object>>)
    Extensions.InitOneToMany<TChild>(IEntity, Expression<Func<Many<TChild>>>)
    Extensions.Collection<T>(T)
    Extensions.CollectionName<T>(T)
    Extensions.Database<T>(T)
    Extensions.DatabaseName<T>(T)
    Extensions.DeleteAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.Fluent<T>(T, IClientSessionHandle, AggregateOptions)
    Extensions.InsertAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.NextSequentialNumberAsync<T>(T, CancellationToken)
    Extensions.Queryable<T>(T, AggregateOptions)
    Extensions.SaveAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.SaveExceptAsync<T>(T, IEnumerable<String>, IClientSessionHandle, CancellationToken)
    Extensions.SaveExceptAsync<T>(T, Expression<Func<T, Object>>, IClientSessionHandle, CancellationToken)
    Extensions.SaveOnlyAsync<T>(T, IEnumerable<String>, IClientSessionHandle, CancellationToken)
    Extensions.SaveOnlyAsync<T>(T, Expression<Func<T, Object>>, IClientSessionHandle, CancellationToken)
    Extensions.SavePreservingAsync<T>(T, IClientSessionHandle, CancellationToken)
    Extensions.ToDocument<T>(T)
    Extensions.ToReference<T>(T)
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX