merge_s.rottem wrote:
If an object is lazy and you use load you'll just get a proxy to the object with no actual database hit. The database will only be hit if you touch one of the proxy's properties (it's Id excepted, of course).
The proxy is in effect recognized as an actual object, so if you set the Account.Office property to the proxy then when you save or update the Account object it will have a reference to the object that the proxy represents.
To do this you need to know the id of the office you want to get a proxy for, of course...
Symon.
Great i didn't know this. Your answer was very helpful for me.
Thanks