private void SetMappingState(IMapping <TEntity> mapping, MappingState state) { using (IOperationScope scope = this.operationExecutive.CreateOperation()) { mapping.SetState(state); this.eventDispatcher.OrphanMappingProcessed( new OrphanMappingProcessedArgs( this.operationExecutive.CurrentOperation.TimeStamp)); scope.Complete(); } }