/// <summary> /// Convert all DBNull values to null /// </summary> public void ConvertDBNullToNull() { if (Convert.IsDBNull(ReturnValue)) { ReturnValue = null; } if (OutputParameters != null) { OutputParameters.ConvertDBNullToNull(); } if (ResultSets != null) { foreach (var resultSet in ResultSets) { if (resultSet != null) { foreach (var record in resultSet) { if (record != null) { record.ConvertDBNullToNull(); } } } } } }