C#C
C#3y ago
OkOk

❔ Enabling "Always Encrypted" created a clash of datatypes

My normal working code
_dbContext.MyClass.Add(MyObject);
crashes when enabling encryption and saving.

Operand type clash: nvarchar is incompatible with nvarchar(4000) encrypted..

I tried changing forcing the nvarchar to 4000 and I enabled everything I saw in the docs.
Was this page helpful?