Skip to content

[Always Encrypted] EF Core 6.0 Operand type clash : decimal(29, 27) is incompatible with money encrypted #27831

@Unnamed1984

Description

@Unnamed1984

Column X in a database is encrypted with Always Encrypted keys and has type money.
EF entity has a property X with type decimal and the following configuration:
modelBuilder.Property(p => p.X).HasColumnType("money");

The exception I get while trying to insert the entity and call SaveChanges:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions