I'm trying to get this to work and having some trouble. I've provisioned the master key and encryption key. I've added the Column Encryption Setting to my connection string, But when I try to Add to the table I get the following exception:
SqlException: Operand type clash: nvarchar(max) encrypted with (encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'CEK_Auto1', column_encryption_key_database_name = 'TestAlwaysEncryptDb') is incompatible with nvarchar(128) encrypted with (encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'CEK_Auto1', column_encryption_key_database_name = 'TestAlwaysEncryptDb')
Statement(s) could not be prepared.
I've tried downloading the zip of the source code, but it doesn't even include the migration to enable encryption. Please advise.