Skip to content

Commit

Permalink
Remove inheritance from InternalEntityEntry (#24905)
Browse files Browse the repository at this point in the history
I think this is a good change in of itself since the subtypes are even less useful now than when it was originally written, and it allows this type to be sealed.

In addition, this is part of #13947, since the two subclasses will no longer cover the different ways of reading a property value.
  • Loading branch information
ajcvickers committed May 14, 2021
1 parent d277e0c commit 260f3ab
Show file tree
Hide file tree
Showing 20 changed files with 167 additions and 505 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private bool TryGenerateIdFromKeys(IProperty idProperty, out object value)
var entityEntry = Activator.CreateInstance(_readItemExpression.EntityType.ClrType);

#pragma warning disable EF1001 // Internal EF Core API usage.
var internalEntityEntry = new InternalEntityEntryFactory().Create(
var internalEntityEntry = new InternalEntityEntry(
_cosmosQueryContext.Context.GetDependencies().StateManager, _readItemExpression.EntityType, entityEntry);
#pragma warning restore EF1001 // Internal EF Core API usage.

Expand Down
48 changes: 0 additions & 48 deletions src/EFCore/ChangeTracking/Internal/IInternalEntityEntryFactory.cs

This file was deleted.

39 changes: 0 additions & 39 deletions src/EFCore/ChangeTracking/Internal/InternalClrEntityEntry.cs

This file was deleted.

Loading

0 comments on commit 260f3ab

Please sign in to comment.