Entity Framework Tutorial Basics(14):Choose development approach

本文介绍了使用Entity Framework进行应用开发时的三种方法:Code-first、Model-first及Database-first,并提供了选择合适开发方法的决策流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Choose development approach with Entity Framework:

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.

Choose Entity Framework modling

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.

转载于:https://www.cnblogs.com/purplefox2008/p/5649005.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值