differences between code first and database first entity framework design
Creating a Database-First Model in Entity Framework. Entity Framework (EF) is the preferred data access solution and Object-Relational Mapper (ORM) from Microsoft. There are three methodologies you can pick from when building an EF model: Database-First, Model-First, and Code-First. In this post, we'll explore creating a Database-First model using an EDMX designer file.
Code first is a better approach, if only because it is simpler. If the system is maintaining an XML model, the database itself, and also a bunch of classes, there is more to go wrong. Plain text code is also easier to work with, for example in source code tools, diff tools (comparing two versions) and the like.