-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels