There are three different styles for developers to choose.
1st way - Database first
Database first is the way for developers prefer a more-centric model design or starting from an existing database. Entity Database is able to create a business model based on the tables. The .edmx configuration file stores the database schema.
2nd way- Model first
Entity Framework uses a schema file to store the information related to mapping the model to a database schema. After the model has been created, the EF designer can generate the database schema that can be used to create a database.
3td - Code first
Developers who want to use more of a persistence ignorance approach can create the business model directly in code. Entity Framework provides a special mapping API and supports a set of conventions to make this approach work. Under the Code First approach, Entity Framework does not leverage any kind of external configuration file to store the database schema, because the mapping API uses these conventions to generate the database schema dynamically at run-time.
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment