Share via


TypeAttributeConventionBase<TAttribute>.ReplaceWithEntityType Method

Definition

Tries to replace the complex type with an entity type.

protected virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ReplaceWithEntityType (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexTypeBuilder complexTypeBuilder, bool? shouldBeOwned = default);
abstract member ReplaceWithEntityType : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexTypeBuilder * Nullable<bool> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
override this.ReplaceWithEntityType : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexTypeBuilder * Nullable<bool> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Protected Overridable Function ReplaceWithEntityType (complexTypeBuilder As IConventionComplexTypeBuilder, Optional shouldBeOwned As Nullable(Of Boolean) = Nothing) As IConventionEntityTypeBuilder

Parameters

complexTypeBuilder
IConventionComplexTypeBuilder

The complex type builder.

shouldBeOwned
Nullable<Boolean>

A value indicating whether the new entity type should be owned.

Returns

The builder for the new entity type.

Applies to