diff --git a/src/EFCore/ChangeTracking/EntityEntry`.cs b/src/EFCore/ChangeTracking/EntityEntry`.cs index 721b25339ec..fe21b597924 100644 --- a/src/EFCore/ChangeTracking/EntityEntry`.cs +++ b/src/EFCore/ChangeTracking/EntityEntry`.cs @@ -74,7 +74,7 @@ public virtual PropertyEntry Property( /// given navigation property. /// public virtual ReferenceEntry Reference( - Expression> propertyExpression) + Expression> propertyExpression) where TProperty : class { Check.NotNull(propertyExpression, nameof(propertyExpression)); diff --git a/src/EFCore/ChangeTracking/ReferenceEntry`.cs b/src/EFCore/ChangeTracking/ReferenceEntry`.cs index 6ca81fea24f..a9ac265e931 100644 --- a/src/EFCore/ChangeTracking/ReferenceEntry`.cs +++ b/src/EFCore/ChangeTracking/ReferenceEntry`.cs @@ -73,7 +73,7 @@ public ReferenceEntry(InternalEntityEntry internalEntry, INavigation navigation) /// the change tracker is aware of the change and is not required /// for the context to detect the change. /// - public new virtual TProperty CurrentValue + public new virtual TProperty? CurrentValue { get => this.GetInfrastructure().GetCurrentValue(Metadata); set => base.CurrentValue = value;