Fix #2097 Ensure any SQL database reader objects are properly closed when using the SingleOrDefault method of the EnableQueryAttribute class.

Signed-off-by: Scott McDonald <scott@movietickets.com>
Ensure any active/open database objects that were created iterating over the IQueryable object are properly closed.

Signed-off-by: Scott McDonald <scott@quantumsoft.com>
Add unit tests for #2097 fix