-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Always Encrypted] EF Core 6.0 Operand type clash : decimal(29, 27) is incompatible with money encrypted #27831
Comments
@Unnamed1984 can you please submit a minimal, runnable code sample showing how the above exception happens? If you configure your property as |
Data.DataContext.cs:
Data.Payment.cs:
Program.cs:
Precision and scale for some reason differ from what I mentioned before, maybe that's because in my current project I use a Column Master Key based on a Key Vault, but the main issue is the same. |
Note for triage: parameter |
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:
The text was updated successfully, but these errors were encountered: