void HandleEvent(AppEnabled evt) { const string sql = @" update core_App set DateEnabled = @DateEnabled where AppId = @Id ; "; DbConnection.Execute(sql, new { evt.AppId.Id, DateEnabled = DateTime.MaxValue }, DbTransaction); }
void When(AppEnabled e) { DateEnabled = DateTime.MaxValue; }