What causes POCO proxy entities to only sometimes be created in Entity Framework 4.
Posted
by Kohan
on Stack Overflow
See other posts from Stack Overflow
or by Kohan
Published on 2010-06-15T10:40:43Z
Indexed on
2010/06/15
10:42 UTC
Read the original article
Hit count: 213
I have set up my POCOs and I have marked their public properties as virtual and I am successfully getting Proxies most of the time (95%) but randomly I am getting EF return some proxies and some non-proxies.
Recycling the app pool when this happens will then fix this instance of the error and it will go away for an amount of time. Then it will re-occur in some other random (it seems) place.
What can cause this sort of behaviour?
Thanks, Kohan
© Stack Overflow or respective owner