Пример #1
0
        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);
        }
Пример #2
0
 void When(AppEnabled e)
 {
     DateEnabled = DateTime.MaxValue;
 }