, . .. .Net. , .
, . - , concurrency (. - , ). , - .
. . AddHire(start,end) - , .
AS no overlap. I save the changes (through my repository) and verify that the database timestamp is still the same as at the beginning of the process. Assuming the timestamp is the same as when the object was received, the changes are saved and the database updates the timestamp.
If someone else is trying to save the changes when the aggregate root is processed, I will either commit it first or they will. If I do it first, the timestamps will not match, and the overlap check will be re-run to make sure they have not created an overlap in the elapsed time.
source
share