LINQ to SQL Classes question
- From: Jordi Rico <jordirico@xxxxxxxxx>
- Date: Wed, 17 Dec 2008 01:31:13 -0800 (PST)
Hi,
well I have a question about something I thought would be trivial but
it's driving me nuts.
In my app I have a list of objects (let's say users) that have been
loaded with a datacontext.
I can add users, list them, etc.
But if I want to edit an user, my problems begin. I pass an user
object to a form, with databound controls to its properties (name,
surname, password...).
Because they are bounded, when I make any change to any control, the
underlying object results changed at the time also.
It has two effects:
a) A list of users shown in other form (from which I select the user
to edit) shows every change I make in edit form.
b) I am unable to cancel editing, because although changes are not
saved to database, they are in memory.
Any help?
Thanks for any help
.
- Follow-Ups:
- Re: LINQ to SQL Classes question
- From: Manu
- Re: LINQ to SQL Classes question
- Prev by Date: replacing characters in a string
- Next by Date: Re: replacing characters in a string
- Previous by thread: replacing characters in a string
- Next by thread: Re: LINQ to SQL Classes question
- Index(es):
Relevant Pages
|