Reputation: 25312
As I understand, Proxied POCO objects can track changes only being attached to ObjectContext. On the contrary STE tracks changes even being detached. I am curious why there is no support for a POCO proxy which will implement STE behaviour internally?
Upvotes: 0
Views: 119
Reputation: 364409
Take this only as my personal opinion.
There are no "self tracking proxies" because for current implementation it would nor make sense. Why:
That is supposed usage of STEs. In any other scenario they don't have too much sense
So where do you see the usage of "self tracking proxies"? Do you want to use them instead of STEs? Why? And more importantly how? Main advantage of STEs implementation is that they are serializable whereas dynamically created proxies are not! If you check how serialization over web services (WCF) work you will see that all serializable types passed through services must be know when the service is started. Otherwise only basic unproxied will be exposed.
Upvotes: 1