Table of Contents

Class InternalForeignKeyBuilder

Namespace
Microsoft.EntityFrameworkCore.Metadata.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

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.

public class InternalForeignKeyBuilder : AnnotatableBuilder<ForeignKey, InternalModelBuilder>, IConventionForeignKeyBuilder, IConventionAnnotatableBuilder
Inheritance
InternalForeignKeyBuilder
Implements
Inherited Members

Constructors

InternalForeignKeyBuilder(ForeignKey, InternalModelBuilder)

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.

public InternalForeignKeyBuilder(ForeignKey foreignKey, InternalModelBuilder modelBuilder)

Parameters

foreignKey ForeignKey
modelBuilder InternalModelBuilder

Methods

AreCompatible(EntityType, EntityType, MemberInfo?, MemberInfo?, IReadOnlyList<Property>?, IReadOnlyList<Property>?, bool?, ConfigurationSource?)

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.

public static bool AreCompatible(EntityType principalEntityType, EntityType dependentEntityType, MemberInfo? navigationToPrincipal, MemberInfo? navigationToDependent, IReadOnlyList<Property>? dependentProperties, IReadOnlyList<Property>? principalProperties, bool? isUnique, ConfigurationSource? configurationSource)

Parameters

principalEntityType EntityType
dependentEntityType EntityType
navigationToPrincipal MemberInfo
navigationToDependent MemberInfo
dependentProperties IReadOnlyList<Property>
principalProperties IReadOnlyList<Property>
isUnique bool?
configurationSource ConfigurationSource?

Returns

bool

AreCompatible(MemberInfo?, MemberInfo?, EntityType, EntityType, bool, out bool?, out 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.

public static bool AreCompatible(MemberInfo? navigationToPrincipalProperty, MemberInfo? navigationToDependentProperty, EntityType principalEntityType, EntityType dependentEntityType, bool shouldThrow, out bool? shouldInvert, out bool? shouldBeUnique)

Parameters

navigationToPrincipalProperty MemberInfo
navigationToDependentProperty MemberInfo
principalEntityType EntityType
dependentEntityType EntityType
shouldThrow bool
shouldInvert bool?
shouldBeUnique bool?

Returns

bool

Attach(InternalEntityTypeBuilder)

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.

public virtual InternalForeignKeyBuilder? Attach(InternalEntityTypeBuilder entityTypeBuilder)

Parameters

entityTypeBuilder InternalEntityTypeBuilder

Returns

InternalForeignKeyBuilder

CanInvert(IReadOnlyList<Property>?, ConfigurationSource?)

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.

public virtual bool CanInvert(IReadOnlyList<Property>? newForeignKeyProperties, ConfigurationSource? configurationSource)

Parameters

newForeignKeyProperties IReadOnlyList<Property>
configurationSource ConfigurationSource?

Returns

bool

CanSetDeleteBehavior(DeleteBehavior??, ConfigurationSource?)

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.

public virtual bool CanSetDeleteBehavior(DeleteBehavior?? deleteBehavior, ConfigurationSource? configurationSource)

Parameters

deleteBehavior DeleteBehavior?
configurationSource ConfigurationSource?

Returns

bool

CanSetEntityTypes(EntityType, EntityType, ConfigurationSource?)

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.

public virtual bool CanSetEntityTypes(EntityType principalEntityType, EntityType dependentEntityType, ConfigurationSource? configurationSource)

Parameters

principalEntityType EntityType
dependentEntityType EntityType
configurationSource ConfigurationSource?

Returns

bool

CanSetEntityTypes(EntityType, EntityType, ConfigurationSource?, out bool, out 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.

public virtual bool CanSetEntityTypes(EntityType principalEntityType, EntityType dependentEntityType, ConfigurationSource? configurationSource, out bool shouldResetToPrincipal, out bool shouldResetToDependent)

Parameters

principalEntityType EntityType
dependentEntityType EntityType
configurationSource ConfigurationSource?
shouldResetToPrincipal bool
shouldResetToDependent bool

Returns

bool

CanSetForeignKey(IReadOnlyList<Property>?, ConfigurationSource?)

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.

public virtual bool CanSetForeignKey(IReadOnlyList<Property>? properties, ConfigurationSource? configurationSource)

Parameters

properties IReadOnlyList<Property>
configurationSource ConfigurationSource?

Returns

bool

CanSetForeignKey(IReadOnlyList<string>?, ConfigurationSource?)

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.

public virtual bool CanSetForeignKey(IReadOnlyList<string>? propertyNames, ConfigurationSource? configurationSource)

Parameters

propertyNames IReadOnlyList<string>
configurationSource ConfigurationSource?

Returns

bool

CanSetIsOwnership(bool?, ConfigurationSource?)

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.

public virtual bool CanSetIsOwnership(bool? ownership, ConfigurationSource? configurationSource)

Parameters

ownership bool?
configurationSource ConfigurationSource?

Returns

bool

CanSetIsRequired(bool?, ConfigurationSource?)

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.

public virtual bool CanSetIsRequired(bool? required, ConfigurationSource? configurationSource)

Parameters

required bool?
configurationSource ConfigurationSource?

Returns

bool

CanSetIsRequiredDependent(bool?, ConfigurationSource?)

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.

public virtual bool CanSetIsRequiredDependent(bool? required, ConfigurationSource? configurationSource)

Parameters

required bool?
configurationSource ConfigurationSource?

Returns

bool

CanSetIsUnique(bool?, ConfigurationSource?)

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.

public virtual bool CanSetIsUnique(bool? unique, ConfigurationSource? configurationSource)

Parameters

unique bool?
configurationSource ConfigurationSource?

Returns

bool

CanSetNavigation(MemberInfo?, bool, ConfigurationSource?)

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.

public virtual bool CanSetNavigation(MemberInfo? property, bool pointsToPrincipal, ConfigurationSource? configurationSource)

Parameters

property MemberInfo
pointsToPrincipal bool
configurationSource ConfigurationSource?

Returns

bool

CanSetNavigation(string?, bool, ConfigurationSource?)

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.

public virtual bool CanSetNavigation(string? name, bool pointsToPrincipal, ConfigurationSource? configurationSource)

Parameters

name string
pointsToPrincipal bool
configurationSource ConfigurationSource?

Returns

bool

CanSetNavigations(MemberInfo?, MemberInfo?, ConfigurationSource?)

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.

public virtual bool CanSetNavigations(MemberInfo? navigationToPrincipal, MemberInfo? navigationToDependent, ConfigurationSource? configurationSource)

Parameters

navigationToPrincipal MemberInfo
navigationToDependent MemberInfo
configurationSource ConfigurationSource?

Returns

bool

CanSetNavigations(string?, string?, ConfigurationSource?)

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.

public virtual bool CanSetNavigations(string? navigationToPrincipalName, string? navigationToDependentName, ConfigurationSource? configurationSource)

Parameters

navigationToPrincipalName string
navigationToDependentName string
configurationSource ConfigurationSource?

Returns

bool

CanSetPrincipalKey(IReadOnlyList<Property>?, ConfigurationSource?)

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.

public virtual bool CanSetPrincipalKey(IReadOnlyList<Property>? properties, ConfigurationSource? configurationSource)

Parameters

properties IReadOnlyList<Property>
configurationSource ConfigurationSource?

Returns

bool

CanSetPrincipalKey(IReadOnlyList<string>?, ConfigurationSource?)

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.

public virtual bool CanSetPrincipalKey(IReadOnlyList<string>? propertyNames, ConfigurationSource? configurationSource)

Parameters

propertyNames IReadOnlyList<string>
configurationSource ConfigurationSource?

Returns

bool

DependentEntityType(EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? DependentEntityType(EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

FindCompatibleClrMember(string, EntityType, EntityType, 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.

public static MemberInfo? FindCompatibleClrMember(string navigationName, EntityType sourceType, EntityType targetType, bool shouldThrow = false)

Parameters

navigationName string
sourceType EntityType
targetType EntityType
shouldThrow bool

Returns

MemberInfo

FindCurrentForeignKeyBuilder(EntityType, EntityType, MemberIdentity?, MemberIdentity?, IReadOnlyList<Property>?, IReadOnlyList<Property>?)

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.

public static InternalForeignKeyBuilder? FindCurrentForeignKeyBuilder(EntityType principalEntityType, EntityType dependentEntityType, MemberIdentity? navigationToPrincipal, MemberIdentity? navigationToDependent, IReadOnlyList<Property>? dependentProperties, IReadOnlyList<Property>? principalProperties)

Parameters

principalEntityType EntityType
dependentEntityType EntityType
navigationToPrincipal MemberIdentity?
navigationToDependent MemberIdentity?
dependentProperties IReadOnlyList<Property>
principalProperties IReadOnlyList<Property>

Returns

InternalForeignKeyBuilder

HasEntityTypes(EntityType, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasEntityTypes(EntityType principalEntityType, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

principalEntityType EntityType
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<Property>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<Property>? properties, ConfigurationSource configurationSource)

Parameters

properties IReadOnlyList<Property>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<Property>?, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<Property>? properties, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

properties IReadOnlyList<Property>
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<MemberInfo>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<MemberInfo>? properties, ConfigurationSource configurationSource)

Parameters

properties IReadOnlyList<MemberInfo>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<MemberInfo>?, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<MemberInfo>? properties, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

properties IReadOnlyList<MemberInfo>
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<string>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<string>? propertyNames, ConfigurationSource configurationSource)

Parameters

propertyNames IReadOnlyList<string>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasForeignKey(IReadOnlyList<string>?, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasForeignKey(IReadOnlyList<string>? propertyNames, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

propertyNames IReadOnlyList<string>
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigation(MemberInfo?, bool, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigation(MemberInfo? property, bool pointsToPrincipal, ConfigurationSource configurationSource)

Parameters

property MemberInfo
pointsToPrincipal bool
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigation(string?, bool, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigation(string? name, bool pointsToPrincipal, ConfigurationSource configurationSource)

Parameters

name string
pointsToPrincipal bool
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigations(MemberIdentity?, MemberIdentity?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigations(MemberIdentity? navigationToPrincipal, MemberIdentity? navigationToDependent, ConfigurationSource configurationSource)

Parameters

navigationToPrincipal MemberIdentity?
navigationToDependent MemberIdentity?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigations(MemberInfo?, MemberInfo?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigations(MemberInfo? navigationToPrincipal, MemberInfo? navigationToDependent, ConfigurationSource configurationSource)

Parameters

navigationToPrincipal MemberInfo
navigationToDependent MemberInfo
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigations(MemberInfo?, MemberInfo?, EntityType, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigations(MemberInfo? navigationToPrincipal, MemberInfo? navigationToDependent, EntityType principalEntityType, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

navigationToPrincipal MemberInfo
navigationToDependent MemberInfo
principalEntityType EntityType
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigations(string?, string?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigations(string? navigationToPrincipalName, string? navigationToDependentName, ConfigurationSource configurationSource)

Parameters

navigationToPrincipalName string
navigationToDependentName string
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasNavigations(string?, string?, EntityType, EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasNavigations(string? navigationToPrincipalName, string? navigationToDependentName, EntityType principalEntityType, EntityType dependentEntityType, ConfigurationSource configurationSource)

Parameters

navigationToPrincipalName string
navigationToDependentName string
principalEntityType EntityType
dependentEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasPrincipalKey(IReadOnlyList<Property>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasPrincipalKey(IReadOnlyList<Property>? properties, ConfigurationSource configurationSource)

Parameters

properties IReadOnlyList<Property>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasPrincipalKey(IReadOnlyList<MemberInfo>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasPrincipalKey(IReadOnlyList<MemberInfo>? members, ConfigurationSource configurationSource)

Parameters

members IReadOnlyList<MemberInfo>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

HasPrincipalKey(IReadOnlyList<string>?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? HasPrincipalKey(IReadOnlyList<string>? propertyNames, ConfigurationSource configurationSource)

Parameters

propertyNames IReadOnlyList<string>
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

IsOwnership(bool?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? IsOwnership(bool? ownership, ConfigurationSource configurationSource)

Parameters

ownership bool?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

IsRequired(bool?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? IsRequired(bool? required, ConfigurationSource configurationSource)

Parameters

required bool?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

IsRequiredDependent(bool?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? IsRequiredDependent(bool? required, ConfigurationSource configurationSource)

Parameters

required bool?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

IsUnique(bool?, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? IsUnique(bool? unique, ConfigurationSource configurationSource)

Parameters

unique bool?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

MakeDeclaringTypeShared(ConfigurationSource?)

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.

public virtual InternalForeignKeyBuilder? MakeDeclaringTypeShared(ConfigurationSource? configurationSource)

Parameters

configurationSource ConfigurationSource?

Returns

InternalForeignKeyBuilder

OnDelete(DeleteBehavior??, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? OnDelete(DeleteBehavior?? deleteBehavior, ConfigurationSource configurationSource)

Parameters

deleteBehavior DeleteBehavior?
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

PrincipalEntityType(EntityType, ConfigurationSource)

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.

public virtual InternalForeignKeyBuilder? PrincipalEntityType(EntityType principalEntityType, ConfigurationSource configurationSource)

Parameters

principalEntityType EntityType
configurationSource ConfigurationSource

Returns

InternalForeignKeyBuilder

ReuniquifyImplicitProperties(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.

public virtual InternalForeignKeyBuilder? ReuniquifyImplicitProperties(bool force)

Parameters

force bool

Returns

InternalForeignKeyBuilder

ThrowForConflictingNavigation(IReadOnlyForeignKey, IReadOnlyEntityType, IReadOnlyEntityType, string?, string?)

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.

public static void ThrowForConflictingNavigation(IReadOnlyForeignKey foreignKey, IReadOnlyEntityType principalEntityType, IReadOnlyEntityType dependentEntityType, string? navigationToDependent, string? navigationToPrincipal)

Parameters

foreignKey IReadOnlyForeignKey
principalEntityType IReadOnlyEntityType
dependentEntityType IReadOnlyEntityType
navigationToDependent string
navigationToPrincipal string

ThrowForConflictingNavigation(IReadOnlyForeignKey, string, 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.

public static void ThrowForConflictingNavigation(IReadOnlyForeignKey foreignKey, string newInverseName, bool newToPrincipal)

Parameters

foreignKey IReadOnlyForeignKey
newInverseName string
newToPrincipal bool