We have seen Code-first, Model-first and Database-first approaches in the previous sections. So, now you have to make a decision about which development approach to use in your application. The following figure illustrates the decision tree.

Entity Framework Tutorial Basics(14):Choose development approach

As per the above figure, if you already have an existing application with domain classes, then you can use the code-first approach because you can create a database from your existing classes in this approach. If you have an existing database, then you can create an EDM from an existing database in the database-first approach. If you do not have an existing database or domain classes, and you prefer to design your DB model on the visual designer, then go for Model-first approach.

相关文章:

  • 2021-07-04
  • 2021-10-14
  • 2021-11-20
  • 2021-10-31
  • 2021-12-08
  • 2022-02-08
  • 2022-01-04
  • 2022-01-19
猜你喜欢
  • 2022-01-05
  • 2021-07-11
  • 2021-09-13
  • 2021-07-21
  • 2021-05-16
  • 2022-01-06
  • 2021-08-31
相关资源
相似解决方案