Learning NHibernate 4
暫譯: 學習 NHibernate 4
Suhas Chatekar
- 出版商: Packt Publishing
- 出版日期: 2015-07-31
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 402
- 裝訂: Paperback
- ISBN: 1784393568
- ISBN-13: 9781784393564
-
相關分類:
Java 相關技術
海外代購書籍(需單獨結帳)
商品描述
Explore the full potential of NHibernate to build robust data access code
About This Book
- Build a robust and scalable data access layer using NHibernate's features and practical wisdom
- Use patterns such as specification and query object to make data access layer maintainable and extensible
- Work effectively with legacy databases using lesser known NHibernate features
Who This Book Is For
This book targets .NET developers who have never used an ORM before, developers who have used an ORM before but are new to NHibernate, or have used NHibernate sparingly and want to learn more about NHibernate.
What You Will Learn
- Map domain entities to a database schema using the different mapping mechanisms available
- Configure NHibernate through XML configuration
- Save, update, and delete entities in the database and query data from a database using different querying methods
- Optimize database operations for speed and memory consumption
- Use NHibernate in real-life software projects
- Get to know about data access patterns such as repository, specification, and query object
- Use NHibernate with legacy databases
In Detail
Connecting the object-oriented world of .NET to the relational world of databases has always been fiddly but with the onset of ORMs such as NHibernate, developers have finally got some relief in this area.
You will begin with a bird's eye view of NHibernate, touching upon its core concepts. You will define domain model and map it with database schema using different techniques. You will then look into multiple ways of storing domain entities in a database and learn important concepts such as transitive persistence, transactions and unit of work. This will be followed by retrieving data from database. Next, you will optimize your code, explore concepts such as the onion architecture, and learn where NHibernate fits best in an application's architecture. After introducing a well-known repository pattern into our application, you will learn to deal with legacy databases. We will conclude with infrequently used features such as stateless sessions, the second level cache, concurrency, and so on, which might come handy.
商品描述(中文翻譯)
探索 NHibernate 的全部潛力以構建穩健的數據訪問代碼
關於本書
- 使用 NHibernate 的特性和實用智慧構建穩健且可擴展的數據訪問層
- 使用規範(specification)和查詢對象(query object)等模式,使數據訪問層可維護且可擴展
- 使用不太為人所知的 NHibernate 特性有效地處理遺留數據庫
本書適合誰
本書針對從未使用過 ORM 的 .NET 開發人員、曾經使用過 ORM 但對 NHibernate 新手的開發人員,或是偶爾使用 NHibernate 並希望深入了解 NHibernate 的開發人員。
您將學到什麼
- 使用不同的映射機制將領域實體映射到數據庫架構
- 通過 XML 配置配置 NHibernate
- 在數據庫中保存、更新和刪除實體,並使用不同的查詢方法從數據庫查詢數據
- 優化數據庫操作以提高速度和內存消耗
- 在實際軟件項目中使用 NHibernate
- 了解數據訪問模式,如倉儲(repository)、規範(specification)和查詢對象(query object)
- 在遺留數據庫中使用 NHibernate
詳細內容
將 .NET 的面向對象世界與數據庫的關聯世界連接一直是個麻煩的事情,但隨著 NHibernate 等 ORM 的出現,開發人員在這方面終於得到了些許緩解。
您將從 NHibernate 的全景視圖開始,觸及其核心概念。您將定義領域模型並使用不同技術將其映射到數據庫架構。接著,您將探索多種將領域實體存儲到數據庫中的方法,並學習重要概念,如傳遞持久性(transitive persistence)、事務(transactions)和工作單元(unit of work)。然後,您將從數據庫中檢索數據。接下來,您將優化代碼,探索洋蔥架構(onion architecture)等概念,並了解 NHibernate 在應用程序架構中的最佳適用位置。在將知名的倉儲模式引入我們的應用程序後,您將學習如何處理遺留數據庫。我們將以不常用的特性作結,如無狀態會話(stateless sessions)、第二級緩存(second level cache)、並發(concurrency)等,這些特性可能會派上用場。