Fixing more errors with nullable reference types

This commit is contained in:
Nikolaj Geisle
2022-02-24 09:24:56 +01:00
parent a8cf6ee127
commit ed13237177
186 changed files with 1737 additions and 1389 deletions

View File

@@ -60,9 +60,9 @@ namespace Umbraco.Cms.Core.Scoping
public IUmbracoDatabaseFactory DatabaseFactory { get; }
public ISqlContext SqlContext => DatabaseFactory.SqlContext;
public ISqlContext? SqlContext => DatabaseFactory.SqlContext;
public IQuery<T> CreateQuery<T>() => SqlContext.Query<T>();
public IQuery<T>? CreateQuery<T>() => SqlContext?.Query<T>();
#region Context