n层ORM&如何实施ORM [英] n-tiers & ORM & how to implement ORM

查看:96
本文介绍了n层ORM&如何实施ORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我使用带有.net Framework 3.5的VS.NET 2008在层(DAL,BLL,UI)中开发应用程序.对于数据访问,我使用的是Enterprise Library 4.1,并使用log4net进行日志记录.

Usually I'm developing application in tiers (DAL, BLL, UI) using VS.NET 2008 with .net framework 3.5. For data access, I'm using Enterprise Library 4.1 and logging using log4net.

我听说过ORM,并且在我的编程中实现ORM很有趣,该怎么做?对性能有影响吗?

I've heard about ORM, and interesting to implement ORM in my programming, how to do that? Is that any impact to the performance?

我知道2个ORM,NHibernate和Entity Framework. NHibernate的性能不好,并且实体框架我认为它在VS.NET 2008中太年轻"了.

I know 2 ORM, NHibernate and Entity Framework. from www.ormbattle.net NHibernate performance is not good, and Entity Framework I think it's too 'young' to be used in VS.NET 2008.

关于LINQ2SQL,它是ORM工具之一吗?但是性能比传统方式慢.

What about LINQ2SQL, is it one of ORM tools? but the performance is too slow that using conventional way.

推荐答案

也许值得研究一些所谓的微型ORM"解决方案,例如 PetaPoco 大规模替代NHibernate,Subsonic,Linq2Sql,EF等.

It may be worth looking at some of the so called 'micro ORM' solutions such as Dapper, PetaPoco or Massive as alternatives to NHibernate, Subsonic, Linq2Sql, EF, etc.

此答案掌握了一些有关使用Subsonic和PetaPoco的经验的深刻见解.

This answer holds some insightful info into the experience of using Subsonic vs PetaPoco.

这篇关于n层ORM&如何实施ORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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