Beispiel #1
0
 public async Task HandleAsync(CreateTesterEvent evnt)
 {
     await _synhronizer.ExceuteAsync(@"insert into [tester]([id],[title],[disable])values(@id,@title,@disable)", new { id = evnt.AggregateKey, title = evnt.Title, disable = evnt.Disable });
 }
 public async Task HandleAsync(AbolishTesterEvent evnt)
 {
     await _synhronizer.ExceuteAsync(@"update [tester] set [disable]=@disable where [id]=@id", new { id = evnt.AggregateKey, disable = true });
 }
 public async Task HandleAsync(ChangeTesterEvent evnt)
 {
     await _synhronizer.ExceuteAsync(@"update [tester] set [title]=@title,[disable]=@disable where [id]=@id", new { id = evnt.AggregateKey, title = evnt.Title, disable = evnt.Disable });
 }