Questions regarding navigations and cascadings #2686
Unanswered
alexmurari
asked this question in
Q&A
Replies: 1 comment
-
1- you are looking for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have two questions, searched everything but couldn't find anything:
There's a way to explicit load (fetch) navigations of an already loaded entity?
Example:
EntityEntry(myEntityObj).Fetch(t => t.SomeProperty);
There's a way to atomically set the cascade behavior at a query level, to prevent an Update operation from persisting the related entities/navigations?
Example:
session.Update(myEntityObj).IgnoreRelated();
or like EFctx.Entry(entity).State = EntityState.Modified;
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions