Skip to content

Table-Per-Type and .NET 7 #793

@mtanneryd

Description

@mtanneryd

Hi!

I'm running into some problems with TPT when generating using TemplateType.EfCore7. Is it supposed to work? I get the following result when launching the app:

InvalidOperationException: A key cannot be configured on 'ComputedCurveCategorySource' because it is a derived type. The key must be configured on the root type 'CurveCategorySource'. If you did not intend for 'CurveCategorySource' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation on a type that is included in the model.

I'll try to create a small sample and post it later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions