Skip to content

Feature request: support for EF Core JSON columns #181

@sibbl

Description

@sibbl

Since EF Core 7, it's possible to map JSON columns in e.g. PostgreSQL.

When using InsertOrUpdate, it seems to detect the column as navigation and owned properties.
However, both when inserting and updating, the column stays completely empty.

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.Entity<Author>().OwnsOne(
        author => author.Contact, ownedNavigationBuilder =>
        {
            ownedNavigationBuilder.ToJson();
            ownedNavigationBuilder.OwnsOne(contactDetails => contactDetails.Address);
        });
}

This is some sample code for such columns, as you can also see in the EF Core docs about the ToJson feature: https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew#json-columns

Are there any ideas to support it?

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