Creating a database using model-first development
One of the most interesting new features and enhancements introduced in Entity Framework 6 is its ability to generate a database from an existing object model. This approach provides you with better control over your design and promotes domain-driven design (DDD). In this approach, you can design your domain model based on the business requirements first and then generate the database from it.
Before we explore this further, let's take a quick tour of the modeling approaches that are supported. The domain modeling approaches in Entity Framework include the following:
Code-first: In this approach, the domain model is first defined using the POCO classes and then the database is created from these classes. This approach is popular and provides much more control over your code—you just need to define the database mappings and leave the creating of the database entirely to Entity Framework. Note that as your code drives the database, manual changes...