摘要: 什么是CQRS模式? CQRS是Command and Query Responsibility Segregation的缩写,直译就是命令与查询责任分离的意思。 命令会改变对象的状态,但不返回任何数据。 查询会返回数据,但并不改变对象的状态。 如果将查询和命令简化理解成对数据的读写操作,CQRS模 阅读全文
posted @ 2020-04-02 11:29 talentzemin 阅读(1059) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; namespace CQRS { public class EventBroker { public List<Event> AllEvents = new List 阅读全文
posted @ 2020-04-02 10:38 talentzemin 阅读(236) 评论(0) 推荐(0)