public T GetPreImage<T>(string imageName)
where T : Entity
{
if (Context.PreEntityImages != null
&& Context.PreEntityImages.ContainsKey(imageName)
&& Context.PreEntityImages[imageName] is Entity)
{
return Context.PreEntityImages[imageName] as T;
}
return default;
}