Table of Contents

Class InvertibleRelationshipBuilderBase

Namespace
Microsoft.EntityFrameworkCore.Metadata.Builders
Assembly
Microsoft.EntityFrameworkCore.dll

Base class used for configuring an invertible relationship.

public abstract class InvertibleRelationshipBuilderBase : IInfrastructure<IConventionForeignKeyBuilder>
Inheritance
InvertibleRelationshipBuilderBase
Implements
Derived
Inherited Members
Extension Methods

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

InvertibleRelationshipBuilderBase(IMutableEntityType, IMutableEntityType, IMutableForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
protected InvertibleRelationshipBuilderBase(IMutableEntityType declaringEntityType, IMutableEntityType relatedEntityType, IMutableForeignKey foreignKey)

Parameters

declaringEntityType IMutableEntityType
relatedEntityType IMutableEntityType
foreignKey IMutableForeignKey

InvertibleRelationshipBuilderBase(InternalForeignKeyBuilder, InvertibleRelationshipBuilderBase, bool, bool, bool, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
protected InvertibleRelationshipBuilderBase(InternalForeignKeyBuilder builder, InvertibleRelationshipBuilderBase oldBuilder, bool inverted = false, bool foreignKeySet = false, bool principalKeySet = false, bool requiredSet = false)

Parameters

builder InternalForeignKeyBuilder
oldBuilder InvertibleRelationshipBuilderBase
inverted bool
foreignKeySet bool
principalKeySet bool
requiredSet bool

Properties

Builder

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
protected virtual InternalForeignKeyBuilder Builder { get; set; }

Property Value

InternalForeignKeyBuilder

DeclaringEntityType

Gets the first entity type used to configure this relationship.

protected virtual IMutableEntityType DeclaringEntityType { get; }

Property Value

IMutableEntityType

Metadata

The foreign key that represents this relationship.

public virtual IMutableForeignKey Metadata { get; }

Property Value

IMutableForeignKey

RelatedEntityType

Gets the second entity type used to configure this relationship.

protected virtual IMutableEntityType RelatedEntityType { get; }

Property Value

IMutableEntityType