I am passing in a SQL parameter which is of a user defined table type (idlist) to a stored procedure - all was working well till I added Column Encryption Setting=Enabled;
to the web.config to make the app work with SQL's Always Encrypted feature.
var paramFilterFacilityList = new SqlParameter();
paramFilterFacilityList.ParameterName = "@f";
paramFilterFacilityList.TypeName = "dbo.idlist";
paramFilterFacilityList.Value = fValue;
paramFilterFacilityList.SqlDbType = SqlDbType.Structured;
Exception raised is :
The table type parameter "@f" must have a valid type name.
Any ideas on what could be going on here?