SubSonic 和 SQL Azure

发布于 2024-10-05 20:43:20 字数 239 浏览 0 评论 0原文

我编写了一个电子商务应用程序并使用 SubSonic 2.2 生成数据访问层。 它与 Sql Server 2005 和 2008 完美配合。 不过我想添加对 SQL Azure 的支持。

有人知道 SubSonic 2.2 生成的代码是否可以与 SQL Azure 一起使用吗?

旁注: 如果出现大问题,我可能会废弃 2 年之久的数据访问层并使用 Telerik ORM。

谢谢

I wrote an e-commerce app and used SubSonic 2.2 to generate the Data-Access-Layer.
It works perfectly with Sql Server 2005 and 2008.
However I would like to add support for SQL Azure.

Does anyone know if the code generated by SubSonic 2.2 with work with SQL Azure?

Side note:
If there are big issues I may scrap the 2 yrs old Data-Access-Layer and use Telerik ORM.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对你的占有欲 2024-10-12 20:43:20

我对 SQL Azure 不太熟悉,但我知道它支持 T-SQL。在这种情况下,让 SubSonic 适应它应该不会太困难。

但是,更改模板文件是不够的,您需要修改源项目并重建它。我这样说是因为 SubSonic dll 包含对其支持的各种 ADO.Net 提供程序的引用(Microsoft.Practices.EnterpriseLibrary.Data、MySql.Data、System.Data.SQLite、System.Data.SqlServerCe)。

I'm not that familiar with SQL Azure, but I understand it supports T-SQL. In that case, it shouldn't be too difficult to adapt SubSonic to it.

However, changing the template files will not be enough, you will need to modify the source project and rebuild it. I say this because the SubSonic dll contains references to the various ADO.Net providers it supports (Microsoft.Practices.EnterpriseLibrary.Data, MySql.Data, System.Data.SQLite, System.Data.SqlServerCe).

白鸥掠海 2024-10-12 20:43:20

我会考虑/强烈建议使用像 EntityFramework 这样完全支持的东西。其他完全支持的 ORM 包括 Lightspeed、nHibernate 等。

I would consider / strongly advise using something like EntityFramework which is fully supported. Other fully support ORMs include Lightspeed, nHibernate etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文