Entity Framework CTP5 Reload related entities?

No Reload will load again only main entity but not its navigation properties. Navigation properties are loaded and not affected by reloading the parent.

No. Reload will load again only main entity but not its navigation properties. Navigation properties are loaded and not affected by reloading the parent.

You can try to do this (not sure if this helps): var inactiveUser = GetInactiveUser(region); context. Entry(inactiveUser). State = EntityState.Detached.

I am trying to re-load a navigation property, i.e. The ICollection. Initially the navigation property wouldn't filter at all.

What I had to do is tell this this.Configuration. ProxyCreationEnabled = false; to the context's constructor in order to avoid loading unfiltered nav prop initially. Then in my GetRegionDetails(int regionID) method I was able to filter, but only the first time :( Perhaps the property Detached could play a role with the ICollection?!

– bignermo Mar 31 at 5:35 I ended up with completely detaching the ICollection from the Entity Region and loading the collection manually.It's a workaround but I am still seeking for a solution on how to reload the related entities. – bignermo Apr 1 at 8:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions