当我遍历ObjectStateEntries
我期望的[t]
变量名时MY_ENTITY
foreach (ObjectStateEntry entry in context.ObjectStateManager.GetObjectStateEntries(EntityState.Deleted))
{
Type t = entry.Entity.GetType();
...
}
但真实的我有
System.Data.Entity.DynamicProxies.MY_ENTITY_vgfg7s7wyd7c7vgvgv.....
如何确定可以将当前条目转换为MY_ENTITY
类型?