How is the Unit of Work used with batch processing?
问题 When building a web application, it is a standard practice to use one Unit of Work per HTTP request, and flush all the changes and commit the transaction once after handling the request. What approach is used when building a batch process? Is one Unit of Work instance used for the whole execution of the process, with transactions committed periodically at logical points? This may be more of a discussion than a factual question, but I'm hoping to find out if there is a commonly-accepted "best