Visual Studio 2010: Model-First Development

In this 20-minute video, you'll learn about model-first development. This feature allows you to use Visual Studio 2010 to create your entity data model (EDM) from scratch and then generate a database from it.

See https://channel9.msdn.com/shows/10-4/10-4-Episode-15-Model-First-Development-with-the-Entity-Framework-40/

Contents:

  • 01:00 In .NET Framework 3.5 SP1, you can only go from database to an EDM. In .NET Framework 4.0, you can also go from an EDM to a database.
  • 02:00 Create an EDM.
  • 03:40 Add a new entity (Customer).
  • 04:10 Create a complex type (Address).
  • 05:45 Add a complex type to an entity.
  • 07:20 Create an entity that inherits from another entity.
  • 09:00 Associate entities (one-to-many association).
  • 10:30 Create a database from the EDM.
  • 11:40 Examining the generated SQL Server DDL and creating the database.