Code first approach in entity framework
The Code First Approach provides an alternative to the Database First and Model First approaches to the Entity Data Model and creates a database for us based on our classes that we will be creating in . The intent of this article is to explain the code first approach and code first migrations that Microsoft’s Entity Framework provides. In my last article I explained the theory behind entity framework and the other two approaches i.e. database first and model first approach. We’ll go step by step to explore the code first approach via which we can access database and data using entity. Code first is one of the three approaches to create an entity model. Answer. In Entity Framework, code first was introduced in Entity Framework Code First modeling workflow targets a database that doesn't exist, and Code First will create it. Code-First APIs will create the database on the fly based on your entity classes and configuration.
Many thanks for an explanation, now I will know.