示例#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);
        }
        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);
        }