While I iterating through ObjectStateEntries I expected [t] variable name will be MY_ENTITY
ObjectStateEntries
[t]
MY_ENTITY
foreach (ObjectStateEntry
Another way is to access the BaseType property of the returned proxy type:
BaseType
Type t = entry.Entity.GetType().BaseType;