コード例 #1
0
        public void Add(NcqrsEvent @event)
        {
            if (_commitId == Guid.Empty)
            {
                throw new InvalidOperationException("Cannot Add events without beginning a commit.  Call the BeginCommit method");
            }
            @event.CommitId = _commitId;

            AddObject(EVENTTABLENAME, @event);
        }
コード例 #2
0
        public void Add(NcqrsEvent @event)
        {
            if (_commitId == Guid.Empty)
            {
                throw new InvalidOperationException("Cannot Add events without beginning a commit.  Call the BeginCommit method");
            }
            @event.CommitId = _commitId;

            AddObject(EVENTTABLENAME, @event);
        }