I use always encryption
in some field with any of master key stores(I was test all of these):
-current user
-local machine
-CNG
even from application side configure this connection string:
<connectionStrings>
<add name="DataContext" connectionString="data source=our-PC\SS2016;initial catalog=testdb;integrated security=True; MultipleActiveResultSets=True;App=EntityFramework;Column Encryption Setting=enabled" providerName="System.Data.SqlClient" />
</connectionStrings>
When running in web and want to load some data using EF by this block of code :
var datas = context.tbUsers.ToList();
Below error occured:
Additional information: The property 'Name' is not a String or Byte
array. Length can only be configured for String and Byte array properties.
What happened?