DbContext undo/discard extensions.
Generic resources, and resource usage code.