Print Page | Close Window

Entity Manager Rejecting Reject Changes

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2240
Printed Date: 21-Jan-2026 at 12:50pm


Topic: Entity Manager Rejecting Reject Changes
Posted By: Molinari
Subject: Entity Manager Rejecting Reject Changes
Date 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;
        }








Replies:
Posted By: ting
Date 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!



Posted By: Molinari
Date Posted: 21-Oct-2010 at 3:23am
Hi Ting,

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



Posted By: ting
Date 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.



Posted By: Molinari
Date Posted: 26-Oct-2010 at 3:25am
Hi Ting,

Ok, I'm waiting the new release.



Posted By: ting
Date Posted: 09-Dec-2010 at 2:42pm
This has been fixed and is available in DevForce 6.0.7.




Print Page | Close Window