You can use a nested diagnostic context (NDC) to push the information in before you enter the ORM module (or at whatever level is appropriate).
This idea is referred to in the log4net documentation as Context Stacks but most loggers have a similar concept.