I want to keep the null values (insert them to DB) while i pass them over as a string to the sql variable in my C# code.
var valString = new StringBuilder();
//somevalue is null at this point
valString.Append($"({id}, " +$"'{SomeValue}')");
The string interpolation is returning an emptyString for SomeValue => '' instead of null. I want to preserve that null in the string interpolation and pass it to the query string. Is it possible?