Use MVC 5 Scaffolding > Step 3 of 5: Add a Reference to the Entity Framework |
Adding a reference to the EntityFramework.SqlServerCompact library allows you to define the object model without having any database, and when you run the project, the database will be created dynamically.
In this example, you'll use the Code First approach in Entity Framework 4. This allows you to develop without a designer or XML mapping file.
In the next step, you'll add controllers to the project.