TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tarik Palic
NA
17
1.5k
Modify entity afrer InsertOnSubmit
Jun 10 2018 7:35 AM
Hello everyone,Lets say I have a situation like this:var x = db.table.firstordefault(x=> x.something);If (x == null) { x = new someObject(); x.property1 = 1; x.propertt2 = 2; db.table.insertonsubmit(x); } x.property3 = 3; x.property4 = 4; db.table.submitchanges();My question is: Are property3 and property4 always going to be saved to the db?I would test this myself, but dont have access to the actual code.Thank you very much P.S. Is there a way to format the code? I'm posting fro my phone.
Reply
Answers (
1
)
HELP ME!!!! Create Project
Yield return throws object reference not set exception