Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Mar 1, 2023
1 parent 316caa8 commit f73a22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EFCore.Relational/Metadata/Internal/ColumnBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ColumnBase<TColumnMappingBase> : Annotatable, IColumnBase
where TColumnMappingBase : class, IColumnMappingBase
{
private Type? _providerClrType;
private readonly RelationalTypeMapping? _storeTypeMapping;
private RelationalTypeMapping? _storeTypeMapping;

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down Expand Up @@ -99,7 +99,7 @@ public virtual Type ProviderClrType
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual RelationalTypeMapping StoreTypeMapping
=> _storeTypeMapping ?? PropertyMappings.First().TypeMapping;
=> _storeTypeMapping ??= PropertyMappings.First().TypeMapping;

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down

0 comments on commit f73a22e

Please sign in to comment.