问题标签 [command-query-separation]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
50 浏览

c# - CQRS 中是否有任何规则不允许在同一控制器操作中使用查询和命令?

例如:我想删除一个项目,如果控制器操作不存在它,则返回 404。我违反了任何规则吗?命令仍然与查询分开。