I want to ask how can I clear context if user want to go back in many cases? For example:
_client.Invoice.Add(_invoice);
_context.Client.Add(_client);
I bind and add Invoice and Client information but do not save it in database by using
_context.SaveChanges();
In this case the data still exist in context, What I want to ask about, How can I clear Invoice and Client context without leave window ?
Hope this is clear?