I am not sure If I am possibly doing something wrong.
But I am having troubles getting my app to run correctly.
I have a booking editor view, in which I can create bookings. I am using Prism and Unity;
The first time the application starts, I can create a booking no problem. I then close that view and try create another.
Now when I created the first booking, I create a new Booking. It gets and ID of 0; When I try create another booking
it tells me that it cannot attach the entity booking ID 0 because it is attached to another entityset.
I have tried everything I can think off. It seems that because the view does not get destroyed the domain context remains
active. Even when exiting the first booking I have asked it to detach the booking.
Any help will be great.