<ddd--領域驅動設計學習>討論--------倉儲
<ddd--領域驅動設計學習>討論--------倉儲
倉儲委託合適的基礎結構來完成自己的工作,把儲存,檢索,查詢封裝起來還是倉儲的實現的最基本的特性。
還有看到網上的一句話:
“可以理解Repository就是對Dao的封裝,不同點在於Repository只返回model或者model的集合,而dao則可以返回的更多比如返回一些統計資料。”
---------是不是還可以說:倉儲跟dao的不同是因為倉儲還包括一些業務的邏輯。
老馬的一段話:
“A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to Repository for satisfaction. Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes.
Conceptually, a Repository encapsulates the set of objects persisted in a data store and the operations performed over them, providing a more object-oriented view of the persistence layer. Repository also supports the objective of achieving a clean separation and one-way dependency between the domain and data mapping layers.”
----------acting like an in-memory domain object collection.
象一個在記憶體裡的領域物件一樣運作著。倉儲 就像 記憶體管理器一樣,應該是快取吧。 可以存放物件,刪除物件。是不是可以理解:倉儲具有操作物件(CRUD)功能的快取呢?
各位老師能不能說一下 倉儲怎麼存放物件?是存到DB裡面嗎
倉儲委託合適的基礎結構來完成自己的工作,把儲存,檢索,查詢封裝起來還是倉儲的實現的最基本的特性。
還有看到網上的一句話:
“可以理解Repository就是對Dao的封裝,不同點在於Repository只返回model或者model的集合,而dao則可以返回的更多比如返回一些統計資料。”
---------是不是還可以說:倉儲跟dao的不同是因為倉儲還包括一些業務的邏輯。
老馬的一段話:
“A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to Repository for satisfaction. Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes.
Conceptually, a Repository encapsulates the set of objects persisted in a data store and the operations performed over them, providing a more object-oriented view of the persistence layer. Repository also supports the objective of achieving a clean separation and one-way dependency between the domain and data mapping layers.”
----------acting like an in-memory domain object collection.
象一個在記憶體裡的領域物件一樣運作著。倉儲 就像 記憶體管理器一樣,應該是快取吧。 可以存放物件,刪除物件。是不是可以理解:倉儲具有操作物件(CRUD)功能的快取呢?
各位老師能不能說一下 倉儲怎麼存放物件?是存到DB裡面嗎
[該貼被spring7777777於2008-12-11 21:27修改過]
[該貼被spring7777777於2008-12-11 21:30修改過]
相關文章
- DDD領域驅動設計:倉儲
- 如何學習領域驅動設計? - Vladik Khononov
- 【吐血推薦】領域驅動設計學習輸出
- DDD領域驅動設計:領域事件事件
- 戲說領域驅動設計(四)——本質論
- 領域驅動設計示例
- MasaFramework -- 領域驅動設計Framework
- 理解領域驅動設計
- 牛津大學“領域驅動設計”課程
- 領域驅動設計戰術模式--領域事件模式事件
- 戲說領域驅動設計(廿五)——領域事件事件
- 實現領域驅動設計
- 領域驅動設計核心概念
- 領域驅動設計簡介
- 再談領域驅動設計
- DDD領域驅動設計pdf
- 實現領域驅動設計 - 使用ABP框架 - 儲存庫框架
- 領域驅動設計戰術模式--領域服務模式
- 戲說領域驅動設計(廿一)——領域服務
- 前端開發-領域驅動設計前端
- DDD-領域驅動設計示例
- 淺談DDD(領域驅動設計)
- JavaScript中的領域驅動設計JavaScript
- 淺談 DDD 領域驅動設計
- 何時使用領域驅動設計
- 微服務領域驅動設計 - semaphoreci微服務
- 戲說領域驅動設計(五)——子域
- 問題驅動設計與領域驅動設計的區別 - abdullin
- 基於ABP落地領域驅動設計-03.倉儲和規約最佳實踐和原則
- 最常見領域驅動設計錯誤
- 領域驅動設計整合與架構架構
- 領域驅動設計(DDD)入門&概要
- 整潔的領域驅動設計 - George
- DDD-領域驅動設計簡談
- 戲說領域驅動設計(三)——困境
- dayatang/dddlib:DDD領域驅動設計庫
- 戲說領域驅動設計(二)——修身
- 戲說領域驅動設計(廿二)——聚合
- 領域驅動設計 (DDD) 簡介 - jannikwempe