Choose development approach with Entity Framework:



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

As per the above figure, if you already have existing application with domain classes then you can use
code-first approach because you can create database from your existing classes in the code-first approach.
If you have existing databse then you can create EDM from existing database in the database-first approach.
If you don't have existing database or domain classes, and you prefer to design you db model on the visual
designer then go for Model-first approach.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章