本文介绍了与 C# 4.0 一起使用的最佳 ORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最好的方法是使用像 Nhiberate 或实体框架这样的 ORM 或做一个客户 ORM.我将在 C# 4.0 项目中使用这个 ORM

what is the best way is to use a ORM like Nhibertate or Entity Framework or to do a customer ORM .I will use this ORM for a C# 4.0 project

推荐答案

,一旦你了解了 ORM 的工作原理、各种陷阱是什么、什么是 SELECT N+,就转向更高级的 ORM1 表示 [:P]

A good option would be to try one of the simpler ORMs like and move to more advanced ORMs once you understand how ORMs work, what are the various pitfalls, what SELECT N+1 means [:P]

不要尝试创建自己的 ORM,已经有几十个了!Subsonic、Castle ActiveRecord、NH、EF(当然)、LLBLGenPro...

Just don't try to create your own ORM, there are several dozens out there already! Subsonic, Castle ActiveRecord, NH, EF (of course), LLBLGenPro...

这篇关于与 C# 4.0 一起使用的最佳 ORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 07:06