public void Handle(PercentCompleteUpdatedEvent message) { using (var connection = _connectionFactory.CreateConnection()) { connection.Execute("UPDATE AssessmentModule.AssessmentInstance SET PercentComplete = @PercentComplete WHERE AssessmentInstanceKey = @AssessmentInstanceKey", new { PercentComplete = message.PercentComplete, AssessmentInstanceKey = message.Key }); } }
private void Apply(PercentCompleteUpdatedEvent percentCompleteUpdatedEvent) { PercentComplete = percentCompleteUpdatedEvent.PercentComplete; }