More work on nullable references

This commit is contained in:
Nikolaj Geisle
2022-02-22 13:35:32 +01:00
parent 315e8d6fe6
commit a8cf6ee127
189 changed files with 1271 additions and 983 deletions

View File

@@ -27,9 +27,9 @@ namespace Umbraco.Cms.Infrastructure.Persistence
private readonly ILogger<UmbracoDatabase> _logger;
private readonly IBulkSqlInsertProvider _bulkSqlInsertProvider;
private readonly DatabaseSchemaCreatorFactory _databaseSchemaCreatorFactory;
private readonly RetryPolicy _connectionRetryPolicy;
private readonly RetryPolicy _commandRetryPolicy;
private readonly IEnumerable<IMapper> _mapperCollection;
private readonly RetryPolicy? _connectionRetryPolicy;
private readonly RetryPolicy? _commandRetryPolicy;
private readonly IEnumerable<IMapper>? _mapperCollection;
private readonly Guid _instanceGuid = Guid.NewGuid();
private List<CommandInfo> _commands;
@@ -49,9 +49,9 @@ namespace Umbraco.Cms.Infrastructure.Persistence
ILogger<UmbracoDatabase> logger,
IBulkSqlInsertProvider bulkSqlInsertProvider,
DatabaseSchemaCreatorFactory databaseSchemaCreatorFactory,
RetryPolicy connectionRetryPolicy = null,
RetryPolicy commandRetryPolicy = null,
IEnumerable<IMapper> mapperCollection = null)
RetryPolicy? connectionRetryPolicy = null,
RetryPolicy? commandRetryPolicy = null,
IEnumerable<IMapper>? mapperCollection = null)
: base(connectionString, sqlContext.DatabaseType, provider, sqlContext.SqlSyntax.DefaultIsolationLevel)
{
SqlContext = sqlContext;