Linq to Sql,Nhibernate,SubSonic,存储过程(帮助) [英] Linq to Sql vs Nhibernate vs SubSonic vs Stored Procedure (Help)

查看:86
本文介绍了Linq to Sql,Nhibernate,SubSonic,存储过程(帮助)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望为新闻频道开发一个网站.

I am looking to develop a website for a news channel.

因此,很明显,它每天都会收到大量点击,并且每天都会进行大量更新.

So, Obviously its gonna receive a lot of hits daily and will be updated a lot on daily basis..

我有ASP.Net和SQL Server的经验.

I have experience in ASP.Net and SQL Server..

这些是我正在考虑使用的技术.考虑到将要承受的负载,请帮助我选择正确的方法.

These are the technologies i am considering to work with. Please help me choose the right method considering the amount of load it will take..

技术?

1) ASP.Net网络表单

2) ASP.Net MVC 1.0

和数据访问权限?

1) Linq to SQL (令人印象深刻,但有传言称微软正在放弃它)

1) Linq to SQL (Impressive but rumours say Microsoft is abandoning it)

2)实体查询(性能问题)

3) Datreader/数据集

4) SubSonic (不知道)

5) NHibernate (不知道)

请在发表评论的同时说明您的观点.

Please explain your point while leaving your comment..

谢谢

Chitresh

推荐答案

我现在选择的工具是ASP.Net MVC 1.0和NHibernate.

My tools of choice right now are ASP.Net MVC 1.0 and NHibernate.

这是我的理由:

ASP.Net MVC

出于以下原因,我更喜欢MVC而不是WebForms.

I prefer MVC over WebForms for the following reasons.

  • ASP.Net MVC清楚地将我的控制器逻辑与我的观点分开
  • 在ASP.Net MVC中,我不必经历WebForms中的页面生命周期
  • 我发现使用诸如jquery之类的良好Javascript库更容易在ASP.Net MVC中编写AJAX应用程序. ASP.Net MVC还使得无需太多工作就可以非常轻松地将结果作为JSON返回
  • 为ASP.Net MVC应用程序编写测试更加直接.作为一名顾问,我必须一次在多个项目之间执行多项任务,并且进行良好的测试可以使从一个项目转移到下一个项目变得更加容易.

NHibernate

尽管NHibernate有不错的学习曲线,但使持久化实体变得更加容易.我喜欢NHibernate,我可以: -自动延迟加载我的收藏 -级联从根对象到其子对象的删除和更新 -一组强大的查询对象,包括Linq,Criteria API和HQL(如果您确实愿意,甚至可以使用直接SQL) -几种缓存选项

While there is a decent learning curve with NHibernate it makes persisting your entities much easier. I like that with NHibernate I can: - Automatically Lazy load my collections - Cascade deletes and updates from a root object down to it's child object - A robust set of query objects including Linq, Criteria API and HQL (even direct SQL if you really want to) - Several caching options

如果您要使用NHibernate,我肯定会使用 FluentNhibernate .它使映射容易得多.

If you're going to use NHibernate I would definitely use FluentNhibernate. It makes the mappings much easier.

这篇关于Linq to Sql,Nhibernate,SubSonic,存储过程(帮助)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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