How can I save an Icollection in an object?
Let’s learn how can I save an Icollection in an object. The most accurate or helpful solution is served by Stack Overflow.
There are ten answers to this question.
Best solution
If I have the below class: public class Foo() { public int PropertyIWantUpdated {get; set;} public int PropertyIDontWantUpdated (get; set} public ICollection<Bar> Bars {get; set;} } When saving to my db, instead of context.Entry(thisFoo).State = EntityState.Modified; I'm using context.Entry(thisFood).Property(tf => tf.PropertyIWantUpdated).IsModified = true; how can I also save changes to Bars?
Answer:
It depends what you are trying to update. First of all let me clarify one important fact - if you have...
Dave at Stack Overflow Mark as irrelevant Undo
Other solutions
why can I not send a message. when I compose a new message and click send I get an error message "Object doesnt support this property or method" Cannot send the message or save ...show more
Answer:
Me to im getting the same message it works if you switch back to classic but i need the new mail please...
LAQU6YELEMQANYVJETP4X55CDA at Yahoo! Answers Mark as irrelevant Undo
Ryan B. at ChaCha Mark as irrelevant Undo
community wiki at wiki.answers.com Mark as irrelevant Undo
Answer:
Abraham Lincoln said this quote My paramount object in this struggle is to save the Union, and is not...
wiki.answers.com Mark as irrelevant Undo
Answer:
Abraham Lincoln said this in a letter addressed to newspaper editor Horace Greeley on Aug 11, 1862.
Anonymous at ChaCha Mark as irrelevant Undo
community wiki at wiki.answers.com Mark as irrelevant Undo
wiki.answers.com Mark as irrelevant Undo
wiki.answers.com Mark as irrelevant Undo
Answer:
the water tower. The actual water tower is in Northbrook Illinois, hometown of the movie's director...
wiki.answers.com Mark as irrelevant Undo
Related Q & A:
- How can I save photo attachments to Yahoo! Photos in mail beta?Best solution by ph.answers.yahoo.com
- How can I save my computer desktop's background as an image/pic?Best solution by Yahoo! Answers
- How can I save money on a London trip?Best solution by international.fsu.edu
- How can I save a copy of my printed docs on my computer?Best solution by Yahoo! Answers
- How can I save money when I shopping at walmart?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.