Skip to content

EF Core 6 Dictionary<string, object> map to jsonb #2134

@ColinZeb

Description

@ColinZeb

this code in EF Core 5 work correct.

 /// <summary>
/// Extension Data
/// </summary>
[Comment("Extension Data")]
[JsonExtensionData]
[Column(TypeName = "jsonb")]
public Dictionary<string, object> ExtensionData { get; set; }

and in ef core 6.0.throw a error

The navigation 'Attachment.ExtensionData' must be configured in 'OnModelCreating' with an explicit name for the target shared-type entity type, or excluded by calling 'EntityTypeBuilder.Ignore'.

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