EntityTypeBuilder.HasManyBuilder 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
HasManyBuilder(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. |
HasManyBuilder(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. |
HasManyBuilder(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 HasManyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, System.Reflection.PropertyInfo navigationProperty);
abstract member HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasManyBuilder (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 collection 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
HasManyBuilder(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 HasManyBuilder (Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType relatedEntityType, string navigationName);
abstract member HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
override this.HasManyBuilder : Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder
Protected Overridable Function HasManyBuilder (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 collection 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
Entity Framework