diff --git a/src/EFCore.Relational/Metadata/Internal/ColumnBase.cs b/src/EFCore.Relational/Metadata/Internal/ColumnBase.cs index 59f284998ac..ceb03cc9fd2 100644 --- a/src/EFCore.Relational/Metadata/Internal/ColumnBase.cs +++ b/src/EFCore.Relational/Metadata/Internal/ColumnBase.cs @@ -13,7 +13,7 @@ public class ColumnBase : Annotatable, IColumnBase where TColumnMappingBase : class, IColumnMappingBase { private Type? _providerClrType; - private readonly RelationalTypeMapping? _storeTypeMapping; + private RelationalTypeMapping? _storeTypeMapping; /// /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to @@ -99,7 +99,7 @@ public virtual Type ProviderClrType /// doing so can result in application failures when updating to a new Entity Framework Core release. /// public virtual RelationalTypeMapping StoreTypeMapping - => _storeTypeMapping ?? PropertyMappings.First().TypeMapping; + => _storeTypeMapping ??= PropertyMappings.First().TypeMapping; /// /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to