المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Undo changes to context when using EntityFramework 4.0/4.1



C# Programming
06-16-2011, 07:01 AM
I have Invoice entity wich I change and then add InvoiceRows and then I want to cancel the whole operation.

What is the easiest way of doing this?
I can use Context.*******() to get a fresh copy of my Entity but is this really the way to do it?

//h