I have taken over some C# code.
The code is hitting a database with some SQL which uses parameters.
SQL
All of the string parameters are typed as
See how to solve the problem in C# with Dapper:
SqlMapper.AddTypeMap(typeof(string), DbType.AnsiString); SqlMapper.AddTypeMap(typeof(String), DbType.AnsiString);