Hi.
In version 5.5.3 the use of _entityToPathToRoot[typeToCheck] in InheritanceInfoProvider.CheckIfIsSubTypeOf causes a KeyNotFoundException:
public bool CheckIfIsSubTypeOf(string typeToCheck, string superType)
{
if (!_entityToEntityInfo.ContainsKey(superType))
{
return false;
}
return _entityToPathToRoot[typeToCheck].Contains(superType);
}
Should it be like this?
public bool CheckIfIsSubTypeOf(string typeToCheck, string superType) {
if (!_entityToEntityInfo.ContainsKey(superType)) {
return false;
}
return _entityToPathToRoot.TryGetValue(typeToCheck, out var superTypes) && superTypes.Contains(superType);
}