/// <summary> /// Gets all types in the model from which a given entity type derives, starting with the closest one. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> /// The base types. /// </returns> public static IEnumerable <IMutableEntityType> GetAllBaseTypesAscending([NotNull] this IMutableEntityType entityType) => entityType.GetAllBaseTypesInclusiveAscending().Skip(1).Cast <IMutableEntityType>();