将LinqToSql DAL转换为EntityFramework [英] Converting a LinqToSql DAL to EntityFramework

查看:48
本文介绍了将LinqToSql DAL转换为EntityFramework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个刚刚使用了1年以上的应用程序,但它仍在不断发展,并且可能会在中期到中期围绕越来越多的数据库架构进行越来越多的发展.该应用程序是使用LinqToSql编写的,已经很好地满足了我们的需求.我们遇到了一些痛点,但是已经解决了这些痛点.我目前认为该应用程序对数据库的需求非常小.

I've got an app that is just over 1yr old but it still evolving and will likely revolve more and more around a growing database schema in the near to mid term. The app was written using LinqToSql which has met our needs fairly well. We have run into a few pain points but have worked around them. I would currently consider this app to have fairly minimal database demands.

现在EntityFramework似乎是微软正在推动人们走向的ORM,我想知道我们是否不可避免地要朝那个方向迁移.

Now that the EntityFramework appears to be the ORM Microsoft is pushing people towards I'm wondering if it isn't inevitable that we will want to migrate in that direction.

我听说过很多关于EntityFramework的好处和坏处.因此,我想知道是否最好还是立即尝试或在VS10到货时等待v2.0?有什么想法吗?如果我现在这样做会失去任何功能吗?

I have heard a lot of good and bad about EntityFramework. So I am wondering if I would be better of taking the plunge now or waiting for v2.0 when VS10 arrives? Any thoughts? Will I lose any functionality if I do it now?

如果我决定迁移,那么有人可以向我指出一些涉及其中的资源吗?

If I were to decide to migrate, can anyone point me at some resources on what is involved?

谢谢!

推荐答案

现在重新等待还是更改?就个人而言,我会等待(请参阅您认为这是对于VS2010(至少是最低版本)来说切换到Entity Framework有利吗?)-在beta发布之前,我无法检查我在EF中缺少的L2S中使用的功能是否已经实现.

Re wait or change now? Personally, I'd wait (see Do you think it’s advantageous to switch to Entity Framework?) for VS2010 (as a minimum) - and until the beta comes out I can't check whether the things I use in L2S that EF lacks are implemented yet.

资源等问题可能是 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆