While I iterating through ObjectStateEntries
I expected [t]
variable name will be MY_ENTITY
foreach (ObjectStateEntry entry in context.ObjectStateManager.GetObjectStateEntries(EntityState.Deleted))
{
Type t = entry.Entity.GetType();
...
}
but real I have
System.Data.Entity.DynamicProxies.MY_ENTITY_vgfg7s7wyd7c7vgvgv.....
How can I determine can I cast current entry to MY_ENTITY
type?
is
keyword? – Dunsinane