I have almost no experience with EF and I am going to start a new project. I am faced with the choice of where to start creating the domain model from the base or from the code.

What are the advantages of each of these approaches and are they anyway or is it a matter of taste?

  • 2
    Well, in one case, the EF makes tables for you, in the other, EF makes classes for you, which is more convenient then choose - tCode
  • if I'm not mistaken, the latest version of EF removed the Database First - Grundy feature
  • At one time it was discussed on sql.ru: sql.ru/forum/1157560-1/pokritikuyte-ef-code-first - AK
  • In new projects I would recommend starting with CF. - AK

2 answers 2

The diagram below will help you choose the approach: enter image description here

A good resource for those who are just starting to learn EF: Entity Framework Guide

    In general, of course, it is useful to know everything how it works, but it is not necessary to be specifically with EF, it is easier and more intuitive to create a model, although the taste and color as they say. Here is the satya where this part 2 understands in great detail.