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
ForeignKeymodelBuilder
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
EntityTypedependentEntityType
EntityTypenavigationToPrincipal
MemberInfonavigationToDependent
MemberInfodependentProperties
IReadOnlyList<Property>principalProperties
IReadOnlyList<Property>isUnique
bool?configurationSource
ConfigurationSource?
Returns
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
MemberInfonavigationToDependentProperty
MemberInfoprincipalEntityType
EntityTypedependentEntityType
EntityTypeshouldThrow
boolshouldInvert
bool?shouldBeUnique
bool?
Returns
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
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
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
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
EntityTypedependentEntityType
EntityTypeconfigurationSource
ConfigurationSource?
Returns
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
EntityTypedependentEntityType
EntityTypeconfigurationSource
ConfigurationSource?shouldResetToPrincipal
boolshouldResetToDependent
bool
Returns
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
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
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
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
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
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
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
MemberInfopointsToPrincipal
boolconfigurationSource
ConfigurationSource?
Returns
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
stringpointsToPrincipal
boolconfigurationSource
ConfigurationSource?
Returns
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
MemberInfonavigationToDependent
MemberInfoconfigurationSource
ConfigurationSource?
Returns
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
stringnavigationToDependentName
stringconfigurationSource
ConfigurationSource?
Returns
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
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
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
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
stringsourceType
EntityTypetargetType
EntityTypeshouldThrow
bool
Returns
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
EntityTypedependentEntityType
EntityTypenavigationToPrincipal
MemberIdentity?navigationToDependent
MemberIdentity?dependentProperties
IReadOnlyList<Property>principalProperties
IReadOnlyList<Property>
Returns
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
EntityTypedependentEntityType
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
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
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
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
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
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
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
MemberInfopointsToPrincipal
boolconfigurationSource
ConfigurationSource
Returns
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
stringpointsToPrincipal
boolconfigurationSource
ConfigurationSource
Returns
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
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
MemberInfonavigationToDependent
MemberInfoconfigurationSource
ConfigurationSource
Returns
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
MemberInfonavigationToDependent
MemberInfoprincipalEntityType
EntityTypedependentEntityType
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
stringnavigationToDependentName
stringconfigurationSource
ConfigurationSource
Returns
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
stringnavigationToDependentName
stringprincipalEntityType
EntityTypedependentEntityType
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
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
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
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
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
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
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
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
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
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
EntityTypeconfigurationSource
ConfigurationSource
Returns
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
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
IReadOnlyForeignKeyprincipalEntityType
IReadOnlyEntityTypedependentEntityType
IReadOnlyEntityTypenavigationToDependent
stringnavigationToPrincipal
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
IReadOnlyForeignKeynewInverseName
stringnewToPrincipal
bool