Below are the different approaches supported in the Entity Framework to create Entity Model –
- Database First – This approach is suitable, if we have a database already created and ready to use it. Using the existing database, we can create the Entity Models.
- Model First – This approach is suitable, when we prefer to create the Entity Models first and derive the database from the Entity Models.
- Code First – This approach is suitable, when we prefer to create the Domain classes first and derive the database from the Domain classes.