ReferenceReferenceBuilder.HasForeignKeyBuilder 方法

定义

重载

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<PropertyInfo>)

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<String>)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<MemberInfo>)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<PropertyInfo>)

Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> foreignKeyProperties);
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasForeignKeyBuilder (dependentEntityType As EntityType, dependentEntityTypeName As String, foreignKeyProperties As IReadOnlyList(Of PropertyInfo)) As InternalRelationshipBuilder

参数

dependentEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
dependentEntityTypeName
String
foreignKeyProperties
IReadOnlyList<PropertyInfo>

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

适用于

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<String>)

Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasForeignKeyBuilder (dependentEntityType As EntityType, dependentEntityTypeName As String, foreignKeyPropertyNames As IReadOnlyList(Of String)) As InternalRelationshipBuilder
Protected Overridable Function HasForeignKeyBuilder (dependentEntityType As EntityType, dependentEntityTypeName As String, foreignKeyPropertyNames As IReadOnlyList(Of String)) As InternalForeignKeyBuilder

参数

dependentEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
dependentEntityTypeName
String
foreignKeyPropertyNames
IReadOnlyList<String>

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
属性

适用于

HasForeignKeyBuilder(EntityType, String, IReadOnlyList<MemberInfo>)

Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs
Source:
ReferenceReferenceBuilder.cs

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> foreignKeyProperties);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasForeignKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType dependentEntityType, string dependentEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> foreignKeyMembers);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasForeignKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasForeignKeyBuilder (dependentEntityType As EntityType, dependentEntityTypeName As String, foreignKeyProperties As IReadOnlyList(Of MemberInfo)) As InternalRelationshipBuilder
Protected Overridable Function HasForeignKeyBuilder (dependentEntityType As EntityType, dependentEntityTypeName As String, foreignKeyMembers As IReadOnlyList(Of MemberInfo)) As InternalForeignKeyBuilder

参数

dependentEntityType
Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
dependentEntityTypeName
String
foreignKeyPropertiesforeignKeyMembers
IReadOnlyList<MemberInfo>

返回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
属性

适用于