Skip to content

Commit

Permalink
Rename CheckPropertyBelongsToType to CheckContains (#32888)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Jan 23, 2024
1 parent 4380d3e commit 7003680
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/EFCore/ChangeTracking/Internal/ArrayPropertyValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public override object? this[string propertyName]
/// </summary>
public override object? this[IProperty property]
{
get => _values[EntityType.CheckPropertyBelongsToType(property).GetIndex()];
set => SetValue(EntityType.CheckPropertyBelongsToType(property).GetIndex(), value);
get => _values[EntityType.CheckContains(property).GetIndex()];
set => SetValue(EntityType.CheckContains(property).GetIndex(), value);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override TValue GetValue<TValue>(string propertyName)
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public override TValue GetValue<TValue>(IProperty property)
=> InternalEntry.GetCurrentValue<TValue>(InternalEntry.EntityType.CheckPropertyBelongsToType(property));
=> InternalEntry.GetCurrentValue<TValue>(InternalEntry.EntityType.CheckContains(property));

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down
4 changes: 2 additions & 2 deletions src/EFCore/ChangeTracking/Internal/EntryPropertyValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public override object? this[string propertyName]
/// </summary>
public override object? this[IProperty property]
{
get => GetValueInternal(EntityType.CheckPropertyBelongsToType(property));
set => SetValueInternal(EntityType.CheckPropertyBelongsToType(property), value);
get => GetValueInternal(EntityType.CheckContains(property));
set => SetValueInternal(EntityType.CheckContains(property), value);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override TValue GetValue<TValue>(string propertyName)
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public override TValue GetValue<TValue>(IProperty property)
=> InternalEntry.GetOriginalValue<TValue>(InternalEntry.EntityType.CheckPropertyBelongsToType(property));
=> InternalEntry.GetOriginalValue<TValue>(InternalEntry.EntityType.CheckContains(property));

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down
2 changes: 1 addition & 1 deletion src/EFCore/Metadata/Internal/EntityTypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static IEnumerable<IReadOnlyNavigation> FindDerivedNavigations(
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public static IProperty CheckPropertyBelongsToType(
public static IProperty CheckContains(
this IEntityType entityType,
IProperty property)
{
Expand Down

0 comments on commit 7003680

Please sign in to comment.