ReferenceReferenceBuilder.HasPrincipalKeyBuilder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<PropertyInfo>) |
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. |
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<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. |
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<MemberInfo>) |
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. |
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<PropertyInfo>)
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> foreignKeyProperties);
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (principalEntityType As EntityType, principalEntityTypeName As String, foreignKeyProperties As IReadOnlyList(Of PropertyInfo)) As InternalRelationshipBuilder
Parameters
- principalEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- principalEntityTypeName
- String
- foreignKeyProperties
- IReadOnlyList<PropertyInfo>
Returns
Applies to
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<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.
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<string> foreignKeyPropertyNames);
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasPrincipalKeyBuilder (principalEntityType As EntityType, principalEntityTypeName As String, foreignKeyPropertyNames As IReadOnlyList(Of String)) As InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (principalEntityType As EntityType, principalEntityTypeName As String, foreignKeyPropertyNames As IReadOnlyList(Of String)) As InternalForeignKeyBuilder
Parameters
- principalEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- principalEntityTypeName
- String
- foreignKeyPropertyNames
- IReadOnlyList<String>
Returns
- Attributes
Applies to
HasPrincipalKeyBuilder(EntityType, String, IReadOnlyList<MemberInfo>)
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.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> foreignKeyProperties);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder HasPrincipalKeyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType principalEntityType, string principalEntityTypeName, System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> foreignKeyMembers);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
override this.HasPrincipalKeyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string * System.Collections.Generic.IReadOnlyList<System.Reflection.MemberInfo> -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalForeignKeyBuilder
Protected Overridable Function HasPrincipalKeyBuilder (principalEntityType As EntityType, principalEntityTypeName As String, foreignKeyProperties As IReadOnlyList(Of MemberInfo)) As InternalRelationshipBuilder
Protected Overridable Function HasPrincipalKeyBuilder (principalEntityType As EntityType, principalEntityTypeName As String, foreignKeyMembers As IReadOnlyList(Of MemberInfo)) As InternalForeignKeyBuilder
Parameters
- principalEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
- principalEntityTypeName
- String
- foreignKeyPropertiesforeignKeyMembers
- IReadOnlyList<MemberInfo>
Returns
- Attributes
Applies to
Entity Framework