你的位置: 码友网首页 / 资讯源列表 / CQRS: Refactoring Queries without Repositories

关于[CQRS: Refactoring Queries without Repositories]的摘要:

This question posted on Twitter (and the subsequent thread) caught my attention. I had to pipe in with my own opinion on having queries without repositories. To summarize, the question is about using Aggregate Roots with an ORM like Entity Framework. Should you eager load all navigation properties or alternatively I guess, use lazy loading? My answer is if you’re only using an aggregate root for commands (to change state) and you generally have a higher read to write ratio, then eager load the navigation properties. As a general rule of thumb.

原文地址: https://codeopinion.com/cqrs-refactoring-queries-without-repositories/

收录时间: 2020-03-06 浏览量: 1996 分类: 架构设计

| 1 收藏 | 0