可关闭的,现成的.NET框架 [英] Available off-the-shelf .net Frameworks

查看:94
本文介绍了可关闭的,现成的.NET框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OK,我只是收集来自大师的这个职位。我还是个学生和中间也是如此。

OK, I was just gathering some experience from Gurus in this post. I am still a student and an Intermediate as well.

现在的问题是,什么样的ORM和业务对象框架,我应该选择从场外的现成当今产品(如LINQ,实体框架,CSLA.net,Spring.net,NHibernate的,企业库),为什么?

Now the question is, what ORM and Business Objects framework should I choose from off-the-shelf products available today(like LINQ, Entity Framework, CSLA.net, Spring.net, NHibernate, Enterprise Lib) and why?

我应该去为开源或专有?

Should I go for Open-Source or Proprietary?

注:我想学习一种/更多的ORM和业务对象框架(S)为我未来的职业生涯。

Note : I am trying to learn one/more ORM and Business Objects Framework(s) for my future career.

推荐答案

JMSA,

正如前面你已经收到了answeres中规定,不同的框架解决不同的现实的解决方案。

As already specified within the answeres you've received, different frameworks address different reality solutions.

因此​​,我理解你的好奇心。正如所说约翰尼D.,LINQ的是不是一个框架,而是一个.NET集技术。你可以用它,即使你不使用任何你mentionned其他框架的工作。

Thus, I understand your curiosity. As said by Johnny D., Linq isn't a Framework, but a .net subset technology. You may work with it even though you're not using any of the other frameworks you mentionned.

开放源代码或专有?就我而言,我preFER开放源代码。有这么多的人谁有助于使这些项目在世界范围内,你可能有被其他任何人使用相同的开源产品,你需要做的的支持。专有产品的成本!无论如何,去最好的办法是了解一个框架的工作原理,让你可以在它的最充分的利用它。根据你的雇主,一些preFER开源和其他preFER专利。

OpenSource or Proprietary? As far as I'm concerned, I prefer OpenSource. There are so many people who contributes to these projects worldwide, that you may have the support required by whoever else uses the same OpenSource product as you do. Proprietary products cost! In anyway, the best way to go is to understand how a framework works so that you may use it at its fullest. Depending on your employer, some prefer OpenSource and others prefer proprietary.

什么框架来选择呢?这是你说你是功力一个很好的问题。

What framework to choose? That is a good question for the skill you say you are.

在我卑微的角度来看,我真的很喜欢微软企业库这是一个开放源代码框架,不管是什么项目你工作。例如,大多数你会写程序都需要一个数据库连接左右。企业库,通过其DAAB(​​数据访问应用程序块),提供了一组工具开箱,这将使你建立多数据库系统,而无需更改或重新编译code,但仅仅通过配置的。企业库已要求微软这类公司如IBM,惠普和其他一些大公司,我们甚至可以忽略的存在维护。因此,当涉及到连接到数据库,我使用Enterrise库。我甚至建立在此基础上,以缓解甚至连接到数据库的过程中我自己的框架,而不必担心语法。

In my humble point of view, I really like Microsoft Enterprise Library which is an OpenSource framework for whatever the project you're working on. For example, most of the programs you'll write will require a Database connection or so. Enterprise Library, through its DAAB (Data Access Application Block) provides a set of tools out of the box which will allow you to build multi-database systems without to change or recompile your code, but simply by configuration. Enterprise Library has been asked to Microsoft to maintain by such companies as IBM, HP and some other big companies that we might even ignore the existence. So, when it comes to connect to a database, I am using Enterrise Library. I even built my own Framework based on it to even ease the process of connecting to a database without having to worry about the syntax.

至于NHibernate的,因为你mentionned它,这是一个集成框架,以帮助您映射数据库内的关系型数据表的逻辑对象。这样的框架,以此作为实体框架不相同。除实体框架,因为据我所知,身高只有为SQL Server。如果你正在深化发展的系统为Oracle数据库,实体框架不会为您提供您所需要的,除非我忽略较大范围的数据库引擎的进一步支持的工具。的NHibernate的优点是,这是与邻近在世界上的任何数据库引擎兼容。我甚至知道NHibernate的允许在面向对象的编程仅仅写你的code,当它的时间,以保存对象,NHibernate的可以自己创建的为您正确的数据库引擎的数据库模式,而无需编写一个DSL(数据结构语言)语句!

As for NHibernate, as you mentionned it, this is an integration framework to help you map your logical objects to your relational data tables within your database. Such frameworks as Entity Framework does the same. Except that Entity Framework, as far as I know, stands ONLY for SQL Server. If you're developping a system for an Oracle database, Entity Framework will not provide you the tools you need, unless I ignore a further support for a larger range of database engines. The advantage of NHibernate is that this is compatible with near any database engines in the world. I even know that NHibernate allows to write your code solely in object-oriented programming, and when it's time to persist your objects, NHibernate may create itself the database schema for your proper database engine without having to write a DSL (Data Structure Language) statement!

我谈了我自己,当我说我使用NHibernate随着企业库,无论是开放源代码产品preFER。

I talk for myself when I say I prefer using NHibernate along with Enterprise Library, both OpenSource products.

希望这有助于,照亮你了一点。但首先,掌握面向对象编程的基础知识,否则你将有一个硬的时间来学习如何使用这些工具。

Hope this helps and light you up a little. But first, master the basics of Object-Oriented Programming, otherwise you'll have a hard-time trying to learn to use these tools.

保重! : - )

这篇关于可关闭的,现成的.NET框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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