共用方式為


ReferenceCollectionBuilder.HasPrincipalKeyBuilder 方法

定義

多載

HasPrincipalKeyBuilder(IReadOnlyList<PropertyInfo>)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

HasPrincipalKeyBuilder(IReadOnlyList<String>)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

HasPrincipalKeyBuilder(IReadOnlyList<MemberInfo>)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

HasPrincipalKeyBuilder(IReadOnlyList<PropertyInfo>)

來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> keyProperties);
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (keyProperties As IReadOnlyList(Of PropertyInfo)) As InternalRelationshipBuilder

參數

keyProperties
IReadOnlyList<PropertyInfo>

傳回

Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder

適用於

HasPrincipalKeyBuilder(IReadOnlyList<String>)

來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<string> keyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<string> keyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<string> keyPropertyNames);
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasPrincipalKeyBuilder (keyPropertyNames As IReadOnlyList(Of String)) As InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (keyPropertyNames As IReadOnlyList(Of String)) As InternalForeignKeyBuilder

參數

keyPropertyNames
IReadOnlyList<String>

傳回

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

適用於

HasPrincipalKeyBuilder(IReadOnlyList<MemberInfo>)

來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs
來源:
ReferenceCollectionBuilder.cs

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> keyProperties);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasPrincipalKeyBuilder (System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> keyMembers);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasPrincipalKeyBuilder : System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasPrincipalKeyBuilder (keyProperties As IReadOnlyList(Of MemberInfo)) As InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (keyMembers As IReadOnlyList(Of MemberInfo)) As InternalForeignKeyBuilder

參數

keyPropertieskeyMembers
IReadOnlyList<MemberInfo>

傳回

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

適用於