protected virtual void Handle(ThreadStickInfoChanged evnt)
 {
     var thread = _entityManager.GetById<ThreadEntity>(evnt.Id);
     thread.IsStick = evnt.StickInfo.IsStick;
     thread.StickDate = evnt.StickInfo.StickDate;
     _entityManager.Update(thread);
 }
        protected virtual void Handle(ThreadStickInfoChanged evnt)
        {
            var thread = _entityManager.GetById <ThreadEntity>(evnt.Id);

            thread.IsStick   = evnt.StickInfo.IsStick;
            thread.StickDate = evnt.StickInfo.StickDate;
            _entityManager.Update(thread);
        }
 private void Handle(ThreadStickInfoChanged evnt)
 {
     using (var conn = _connectionFactory.OpenConnection())
     {
         conn.Update(
             new { IsStick = evnt.StickInfo.IsStick, StickDate = evnt.StickInfo.StickDate },
             new { Id = evnt.Id },
             "EventSourcing_Sample_Thread");
     }
 }