|
此文章由 flyspirit 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 flyspirit 所有!转贴必须注明作者、出处和本声明,并保持内容完整
权威人士Scott Hanselman最近写了一个关于Data Access方法。包括
DataReader, DataSet, LINQ to SQL, EF 4 and Nhibernate.
他的建议是使用EF4和NHibernate
Conclusion
There's lots of choices for Database Access on .NET. You'll run into DataReaders in older or highly tuned code, but there's no reason it can't be hidden in a Repository and still be pleasant to use. LINQ to SQL is nice, lightweight and fast and has dozens of bug fixes in .NET 4, but Entity Framework is the way they are heading going forward. Plus, Entity Framework 4 is *way* better than EF 3.5, so I'm using it for any "larger than small" projects I'm doing and I'm not having much trouble. NHibernate is very mature, actively developed and has a great community around it and it's not going anywhere.
In my opinion, if you're doing database access with .NET you should be using Entity Framework 4 or NHibernate.
原贴连接:http://www.hanselman.com/blog/Ex ... +ComputerZen.com%29 |
评分
-
查看全部评分
|