EntityTypeBuilder.HasOneBuilder 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
HasOneBuilder(EntityType, 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. |
HasOneBuilder(EntityType, String) |
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. |
HasOneBuilder(MemberIdentity, EntityType) |
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. |
HasOneBuilder(EntityType, 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 HasOneBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, System.Reflection.PropertyInfo navigationProperty);
abstract member HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasOneBuilder (relatedEntityType As EntityType, navigationProperty As PropertyInfo) As InternalRelationshipBuilder
Parameters
- relatedEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
The entity type that the relationship targets.
- navigationProperty
- PropertyInfo
The reference navigation property on this entity. If null is passed, then a relationship with no navigation property is created.
Returns
The newly created builder.
Applies to
HasOneBuilder(EntityType, String)
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 HasOneBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, string navigationName);
abstract member HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasOneBuilder (relatedEntityType As EntityType, navigationName As String) As InternalRelationshipBuilder
Parameters
- relatedEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
The entity type that the relationship targets.
- navigationName
- String
The name of the reference navigation property on this entity. If null is passed, then a relationship with no navigation property is created.
Returns
The newly created builder.
Applies to
HasOneBuilder(MemberIdentity, EntityType)
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.ForeignKey HasOneBuilder (Microsoft.EntityFrameworkCore.Metadata.MemberIdentity navigationId, Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.MemberIdentity * Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType -> Microsoft.EntityFrameworkCore.Metadata.Internal.ForeignKey
override this.HasOneBuilder : Microsoft.EntityFrameworkCore.Metadata.MemberIdentity * Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType -> Microsoft.EntityFrameworkCore.Metadata.Internal.ForeignKey
Protected Overridable Function HasOneBuilder (navigationId As MemberIdentity, relatedEntityType As EntityType) As ForeignKey
Parameters
- navigationId
- MemberIdentity
- relatedEntityType
- Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType
Returns
- Attributes
Applies to
Entity Framework