Exemple #1
0
        private void OnPlacementNameUpdated(IDbTransaction tx, ICommit commit, PlacementNameUpdated @event)
        {
            var sqlParams = @event.ToDynamic();

            sqlParams.Id = commit.AggregateId();

            const string sql = @"
				UPDATE [EntryProjector.Entry]
				SET [Where] = @FullyQualifiedTitle
				WHERE [UserId] = @UserId
				AND [Where] = @OriginalFullyQualifiedTitle;"                ;

            tx.Connection.Execute(sql, (object)sqlParams, tx);
        }
 void Apply(PlacementNameUpdated @event)
 {
     // noop.
 }