Ejemplo n.º 1
0
        public MergeResult <TDataObject> GetChanges(IReadOnlyCollection <ICommand> commands)
        {
            var specification = _storageBasedDataObjectAccessor.GetFindSpecification(commands);
            var source        = _storageBasedDataObjectAccessor.GetSource().WhereMatched(specification);
            var target        = _query.For <TDataObject>().WhereMatched(specification);

            var result = _dataChangesDetector.DetectChanges(source, target);

            return(result);
        }
        public MergeResult <TDataObject> GetChanges(IReadOnlyCollection <ICommand> commands)
        {
            var specification = _storageBasedDataObjectAccessor.GetFindSpecification(commands);

            return(_dataChangesDetector.DetectChanges(specification));
        }