In the data world, a database is designed for maintainability, security, efficiency, and scalability. Its data is organized in a way that satisfies the demands of good database design, yet provides challenges for the developer who needs to access that data.
Note: Entity Data Model is a concept. The Entity Framework has a particular implementation that is realized as the EDMX file at design time. At runtime, the EDMX file is broken up into three separate XML files. For the sake of clarity, this book will simply refer to the EDM or Entity Data Model (or simply “the model”) when discussing the Entity Framework’s implementation. But keep in mind that the EDM literally refers to the concept of using some type of model to represent your entities in an application.
The EDM follows the concept of Entity Relationship Modeling, but in the Entity Framework, it moves the model into XML files that are used by the Entity Framework runtime.
With an EDM in place, developers can focus on their business objects even when retrieving data from the database or persisting it back to the database. You, the developer, will not have to worry about the structure of the database, the names of the tables or views, or the names of stored procedures or their required parameters. Nor will you have to create the objects necessary for making connections to the database, or be concerned with the schema of the returned data and then transform the results into objects to use in your code.
You will simply work against your conceptual model and the classes that represent the model’s entities. And when you do so within the scope of the Entity Framework, the Entity Framework runtime will handle database connections, database command generation, query execution, object materialization, and the details of persisting changes back to the database.
Get a thorough introduction to ADO.NET Entity Framework 4 -- Microsoft's core framework for modeling and interacting with data in .NET applications. The second edition of this acclaimed guide provides a hands-on tour of the framework latest version in Visual Studio 2010 and .NET Framework 4. Not only will you learn how to use EF4 in a variety of applications, you'll also gain a deep understanding of its architecture and APIs. From the Entity Data Model and Object Services to WCF Services, MVC Apps, and unit testing, this book covers everything.




Help





