Operator ‘??’ cannot be applied to operands of type ‘string’ and ‘System.DBNull’ April 12, 2024 by Tarik Both operands need to be object. Use explicit cast: (object)table.Value ?? DBNull.Value;