Subscribe to masimplo.com

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox

.Net

Microsoft .NET and ecosystem notes.

Entity Framework Proxy GetType() mess cover image
.Net

Entity Framework Proxy GetType() mess

Entity Framework returns dynamic proxies whose GetType() breaks generic repositories, so I use ObjectContext.GetObjectType to get the real entity type.