I’m using POCO proxies and I’d like to get the type of a object. I’ve found a few examples using GetObjectType for ObjectContext but I’m using DbContext and I don’t see it there. Is this something I need to add to my repository class so it can have access to the DbContext? Or am I completely wrong? Thanks
Share
There is a static method ObjectContext.GetObjectType which, of course, you can use anywhere where
System.Data.Objectsis in scope. You don’t need aDbContextinstance.