EF和SQL Server CE与NuGet [英] EF and SQL Server CE with NuGet

查看:194
本文介绍了EF和SQL Server CE与NuGet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然在NuGet上徘徊,我注意到我已经安装了几个包,EF和SQL Server CE。这引起了几个问题,我没有找到任何信息。

While poking around NuGet I noticed a couple of packages that I have already installed, EF and SQL Server CE. This raised a couple of questions that I have not been able to find any information on.


  1. 在EF包上这是什么添加在VS中还没有这样做,或者只是为您做所有的参考工作?

  1. On EF package what does this add that isn't already there in VS or does it just do all the reference work for you?

在SQL Server CE包中,添加安装它没有?或者这只是一个更好的方法来安装它。

On SQL Server CE package, what does this add that installing it doesn't? Or is this just a better way to install it.

它需要很多的环境设置和我像其他套餐的NuGet一样,但是我不想打破任何东西,除非最终会使我受益匪浅。

It certainly takes a lot to get an environment setup and I like NuGet for other packages, but I do not want to break anything unless it would ultimately benefit me in the long run. Any comments, answers, or anecdotes would be great.

推荐答案

NuGet绝对是所有二进制参考文献的前进方向,甚至是项目工具例如NUnit等。

NuGet is definately the way forward for all binary references and even project tooling such as NUnit etc.

我建议引入组合的EntityFramework.SqlServerCompact包。这将为每个添加最新的二进制文件,并连接正确的提供程序工厂配置,并在App_Start文件夹中添加一个WebActivator,用于Connection Factory初始化。 WebActivator在ASP.NET和Web窗体中都可以工作,但是在一个无基于Web的项目中总是会导致编译错误,但这并不重要。

I'd recommend bringing in the combined EntityFramework.SqlServerCompact package. This will add the latest binaries for each and also hook up the correct provider factory config and add a WebActivator in the App_Start folder for Connection Factory initialisation. The WebActivator works in both ASP.NET and Web Forms but will invariably cause a compile error in a none Web based project but this is no big deal.

这篇关于EF和SQL Server CE与NuGet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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