src/Shared/EntityFramework/Infrastructure/DbChangeTracker.cs
/// <summary>
/// Checks if the <see cref="DbContext" /> is tracking any new, deleted, or changed entities or
/// relationships that will be sent to the database if <see cref="DbContext.SaveChanges" /> is called.
/// </summary>
/// <remarks>
/// Functionally, calling this method is equivalent to checking if there are any entities or
/// relationships in the Added, Updated, or Deleted state.
/// Note that this method calls <see cref="DbChangeTracker.DetectChanges" /> unless
/// <see cref="DbContextConfiguration.AutoDetectChangesEnabled" /> has been set to false.
/// </remarks>
/// <returns>
/// True if underlying <see cref="DbContext" /> have changes, else false.
/// </returns>
Checks if the  is tracking any new, deleted, or changed entities or
relationships that will be sent to the database if  is called.
Checks if the is tracking any new deleted or changed entities or relationships that will be sent to the database if is called .
public bool HasChanges()
        {
            _internalContext.DetectChanges();
            return _internalContext.ObjectContext.ObjectStateManager.HasChanges();
        }
public bool HasChanges ( ) { _internalContext . DetectChanges ( ) ; return _internalContext . ObjectContext . ObjectStateManager . HasChanges ( ) ; }
Checks if the  is tracking any new, deleted, or changed entities or
relationships that will be sent to the database if  is called.
Checks if the is tracking any new deleted or changed entities or relationships that will be sent to the database if is called .
True if underlying  have changes, else false.
True if underlying have changes else false .
remarks
Functionally, calling this method is equivalent to checking if there are any entities or
relationships in the Added, Updated, or Deleted state.
Note that this method calls  unless
has been set to false.
Functionally calling this method is equivalent to checking if there are any entities or relationships in the Added Updated or Deleted state . Note that this method calls unless has been set to false .