update in linqpad 4.42.01
need to update a property on a single row.
I cannot execute this
Option option = Options.Where(p=> p.UserControlToCall.StartsWith("OptionsEditptid")).FirstOrDefault())
option.Code = "aaa"
entity Option is declared no where (intellisense does not show any singular entities ...all are collections).
I can run this with no problem
Options.Where(p=> p.UserControlToCall.StartsWith("OptionsEditptid")).FirstOrDefault())
I cannot execute this
Option option = Options.Where(p=> p.UserControlToCall.StartsWith("OptionsEditptid")).FirstOrDefault())
option.Code = "aaa"
entity Option is declared no where (intellisense does not show any singular entities ...all are collections).
I can run this with no problem
Options.Where(p=> p.UserControlToCall.StartsWith("OptionsEditptid")).FirstOrDefault())
Comments
Also, you need semicolons after statements, and you must call SubmitChanges to save the changes at the end:
Where exactly in your code are you not getting it?
here is the snapshot of the screen