SubSonic 和 Azure 兼容性
我有一个应用程序将于五月推出。我刚刚接手了该项目,并放弃了 EntityFramework 1.0,转而使用 SubSonic。 (我们没有时间等待 EF 4.0。)
有可能将应用程序迁移到 Azure,我想知道这可能会产生什么影响。我的理解是,EF 4.0 设置为可与 Azure 配合使用,但是 EF 1.0 是否提供了 SubSonic 所没有的与 Azure 连接相关的功能?
I have an application that's due to be rolled out in May. I just took over the project and dumped EntityFramework 1.0 in favor of SubSonic. (We don't have the time to wait for EF 4.0.)
There is the possibility of moving the application to Azure, and I was wondering what the implications of that might be. My understanding is that EF 4.0 is set up to work with Azure, but does EF 1.0 have anything to offer regarding connection to Azure that SubSonic does not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于与Sql Azure的连接,我认为它们都是相同的。我刚刚在 Azure 和 SqlAzure 上启动并运行了 SubSonic ActiveRecord MVC 示例。我注意到的唯一奇怪的事情是博客条目作者有一个 guid 而不是用户名 (System.Environment.UserName)。
如果您想尝试他们的示例,您将需要 SqlAzure 会员脚本,您可以在此处获取该脚本:http ://code.msdn.microsoft.com/KB2006191
除了用户名奇怪之外,所有其他数据库访问似乎都是我所期望的。
您是否正在考虑使用 ActiveRecord 或 SimpleRepository?
编辑
更改 t4 ActiveRecord 模板输出以下内容(而不仅仅是 Environment.UserName)后,博客示例的工作方式与在云之外的工作方式相同:
In regards to connection to Sql Azure, I think they both are the same. I just got the SubSonic ActiveRecord MVC sample up and running on Azure and SqlAzure. The only strange thing I notice is there is a guid instead of a user name for the blog entry author (System.Environment.UserName).
If you want to try out their sample you'll want the SqlAzure membership scripts, which you can get here: http://code.msdn.microsoft.com/KB2006191
Other than the UserName strangeness, all the other database access seems to be what I would expect.
Are you thinking of using the ActiveRecord or SimpleRepository?
EDIT
After changing the t4 ActiveRecord template output the following instead of just the Environment.UserName, the blog sample works the same as is does outside of the cloud: