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