1.

Differences Between Poco, Model First And Data First Approach?

Answer»

Database first:

1. Database create before generation of code.
2. Automated code generation by VISUAL studio.
3. using of T4 template generate the C# code.
4. No much control over the Code.

Code First Approach:

1. Database GENERATED from POCO classes.
2. No automated code generation.
3. FULLY control over the code. you need to write your own C# Code.

MODEL First Approach:

1. Creation of CONTEXT and tables using the Designer tool.
2. T4 template will generate the C# code.
3. You have not full control over the code or DB.
4. After creation of tables, once you run application it generate database.

Database first:

1. Database create before generation of code.
2. Automated code generation by visual studio.
3. using of T4 template generate the C# code.
4. No much control over the Code.

Code First Approach:

1. Database generated from POCO classes.
2. No automated code generation.
3. Fully control over the code. you need to write your own C# Code.

Model First Approach:

1. Creation of Context and tables using the Designer tool.
2. T4 template will generate the C# code.
3. You have not full control over the code or DB.
4. After creation of tables, once you run application it generate database.



Discussion

No Comment Found