Programming Entity Framework: Code First (Paperback)
暫譯: 程式設計實體框架:代碼優先 (平裝本)

Julia Lerman, Rowan Miller

  • 出版商: O'Reilly
  • 出版日期: 2012-01-03
  • 售價: $1,220
  • 貴賓價: 9.5$1,159
  • 語言: 英文
  • 頁數: 194
  • 裝訂: Paperback
  • ISBN: 1449312942
  • ISBN-13: 9781449312947
  • 相關分類: Entity
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

This mini book will act as an extension to Programming Entity Framework 2nd Edition. Code First is an additional means of building a model to be used with the Entity Framework and is creating a lot of excitement in the .NET development community. The reader will begin with an overview of what Code First is, why it was created, how it fits into the Entity Framework and when to use it over the alternatives. Next the reader will gain an understanding of how Code First's built in conventions work and how to override them with configuration — whether they choose to use attribute based Data Annotations or strongly typed Fluent API configurations. The mini-book will then review the modeling possibilities of Code First, looking first at the impact of its conventions and then demonstrating how to override that behavior (and its impact on the database) first with the Annotations and then with the Fluent API. The book will also explore how Code First Database initialization works, the options it provides and how they impact your application development and database. Finally the reader will get a chance to see Code First in action in a small application. Because more complex application development with Code First will depend on an understanding of the DbContext API, which is the focus of Minibook #2, readers will see additional application scenarios with Code First in that following mini-book.

商品描述(中文翻譯)

這本迷你書將作為《Programming Entity Framework 第二版》的延伸。Code First 是一種額外的方式,用於建立與 Entity Framework 一起使用的模型,並在 .NET 開發社群中引起了很多興奮。讀者將首先了解 Code First 是什麼、為什麼會創建它、它如何融入 Entity Framework,以及何時應該選擇它而不是其他選項。接下來,讀者將了解 Code First 的內建約定如何運作,以及如何通過配置來覆蓋這些約定——無論是選擇使用基於屬性的資料註解(Data Annotations)還是強類型的流暢 API(Fluent API)配置。這本迷你書將回顧 Code First 的建模可能性,首先考察其約定的影響,然後演示如何使用註解和流暢 API 來覆蓋該行為(及其對資料庫的影響)。書中還將探討 Code First 資料庫初始化的運作方式、它提供的選項以及這些選項如何影響您的應用程式開發和資料庫。最後,讀者將有機會在一個小型應用程式中看到 Code First 的實際應用。由於使用 Code First 進行更複雜的應用程式開發將依賴於對 DbContext API 的理解,而這是迷你書 #2 的重點,讀者將在隨後的迷你書中看到更多 Code First 的應用場景。