New Posts New Posts RSS Feed: Entity Manager Rejecting Reject Changes
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Entity Manager Rejecting Reject Changes

 Post Reply Post Reply
Author
Molinari View Drop Down
Groupie
Groupie
Avatar

Joined: 25-Aug-2010
Posts: 42
Post Options Post Options   Quote Molinari Quote  Post ReplyReply Direct Link To This Post Topic: Entity Manager Rejecting Reject Changes
    Posted: 19-Oct-2010 at 11:07am
Hello People
I am facing problem with method RejectChanges
When I cancelled one event but enitity manager still have
that changes and using value to save on next event.

I attaching following code anyone can help me

Thanks in Advance

private void btnRemove_Click(object sender, RoutedEventArgs e)
        {
            if (DataGrid.SelectedRowsCount != 0)
            {
               STUDENT stud= (STUDENT )DataGrid.FocusedDataRow;
               STUDENT_GROUP.STUDENT.Remove(stud);
             }
            else
               MessageBox.Show("Select a Profession to remove.");
        }

private void CancelButton_Click(object sender, RoutedEventArgs e)

        {
            _em.RejectChanges();
            this.DialogResult = false;
        }





Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 20-Oct-2010 at 6:48pm
Hi Molinari,

We have confirmed this as a bug.  We'll get it fixed, but in the meantime, you may need to manually remove/delete the unwanted entity.  Sorry for the trouble!

Back to Top
Molinari View Drop Down
Groupie
Groupie
Avatar

Joined: 25-Aug-2010
Posts: 42
Post Options Post Options   Quote Molinari Quote  Post ReplyReply Direct Link To This Post Posted: 21-Oct-2010 at 3:23am
Hi Ting,

Do you have a date when the new version coming out?

Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 25-Oct-2010 at 9:49pm
Hi Molinari - We have releases every 6-7 weeks, so the next one should be in early December.

Back to Top
Molinari View Drop Down
Groupie
Groupie
Avatar

Joined: 25-Aug-2010
Posts: 42
Post Options Post Options   Quote Molinari Quote  Post ReplyReply Direct Link To This Post Posted: 26-Oct-2010 at 3:25am
Hi Ting,

Ok, I'm waiting the new release.

Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 09-Dec-2010 at 2:42pm
This has been fixed and is available in DevForce 6.0.7.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down