/// <summary>
 ///     Gets all types in the model which a given entity type derives from.
 /// </summary>
 /// <param name="entityType"> The type to find base types. </param>
 /// <returns>
 ///     The base types.
 /// </returns>
 public static IEnumerable <IMutableEntityType> GetAllBaseTypes([NotNull] this IMutableEntityType entityType)
 => entityType.GetAllBaseTypesAscending().Reverse().Cast <IMutableEntityType>();