I got the above error in my app. Here is the original code
public string GetCustomerNumber(Guid id) { string accountNumber = (string)DBSqlHel
There is another way to workaround this issue. How about modify your store procedure? by using ISNULL(your field, "") sql function , you can return empty string if the return value is null.
Then you have your clean code as original version.