- ASP.NET MVC 4 Mobile App Development
- Andy Meadows
- 232字
- 2021-08-13 16:48:11
Chapter 4. Modeling BrewHow in EF5
If you're developing a new application, Microsoft would very much like you to use Entity Framework 5.0 (EF5). Entity Framework is Microsoft's officially supported Object-Relational Mapping (ORM) tool, finally coming on its own after a much maligned introduction with .NET 3.5 SP1.
As with any ORM, Entity Framework is designed to separate the domain model of an application from the actual storage mechanism. This allows the developer to focus on the actual problem they're trying to solve and spend less time worrying about the tables and columns underneath the model.
Having a framework provide the underlying storage mechanism does have its own set of issues. As almost any DBA will tell you, ORMs will often generate substandard storage models and Entity Framework is not excluded from this issue. However, Entity Framework allows you to customize the translation between the domain and database to match almost any conceivable underlying data store, allowing you and your DBA to work in relative harmony.
In this chapter, we will create the persistence layer for the BrewHow app using Entity Framework 5. We will explore migrations and how we can use them to apply and remove changes to the database. Additionally, we will look at some of the conventions and configurations used by Entity Framework 5.0 to tailor our model to a database mapping we or our DBA prefer.
- Python快樂(lè)編程:人工智能深度學(xué)習(xí)基礎(chǔ)
- Getting started with Google Guava
- AngularJS Web Application Development Blueprints
- Java程序設(shè)計(jì)與計(jì)算思維
- Instant QlikView 11 Application Development
- Kotlin Standard Library Cookbook
- Mastering Android Development with Kotlin
- Tableau 10 Bootcamp
- Mastering Embedded Linux Programming
- Flink核心技術(shù):源碼剖析與特性開發(fā)
- Python數(shù)據(jù)預(yù)處理技術(shù)與實(shí)踐
- Elasticsearch搜索引擎構(gòu)建入門與實(shí)戰(zhàn)
- Java程序設(shè)計(jì)教程
- Python高性能編程(第2版)
- JavaScript高級(jí)程序設(shè)計(jì)(第4版)