Detach, Attach, and Master Detail Datacontext fixes.