Skip to content

Entity Framework Migrations OwnsOne Mapping #1190

Open
@alansbraga

Description

@alansbraga

I’ve created the following test project to illustrate my problem: https://github.com/alansbraga/DatabaseTest

In my real project, I initially created the structure using .NET 6 and have since migrated to .NET 8. Now, I need to add another property to my class, but EF Migrations tries to delete a column that doesn’t exist.

On GitHub, I’ve created a simplified version of the structure using .NET 8 and migrations. The first time you run it, the structure is created correctly. However, if you try to add another property (you don’t actually have to change anything, just execute the migrations), it tries to remove a property that doesn’t exist.

I've created a PowerShell script named "CreateAndUpdate.ps1" in the root project directory.
The script requires Firebird to be running on port 3050 and the folder 'c:\tmp' to exist.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions