比较和对比 NHibernate 和 Telerik 的 OpenAccess

发布于 2024-07-12 23:53:23 字数 161 浏览 12 评论 0原文

您是否使用过 Telerik 的 OpenAccess ORM? 它与 NHibernate 相比如何? 我什么时候应该考虑使用它而不是 NHibernate?

Have you used the OpenAccess ORM from Telerik? How does it compare to NHibernate? When should I consider using it over NHibernate?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

哆啦不做梦 2024-07-19 23:53:24

还有一个原因:目前OpenAccess具有更好的性能特征,如果您的项目需要快速的ORM,那么它将是一个更好的选择。 有关详细信息,请参阅 ORM 基准

One more reason: Currently OpenAccess has better performance characteristics, if you need fast ORM for your project it will be a better choice. See ORM benchmarks for details.

骄兵必败 2024-07-19 23:53:24

我想说 nHibernate 是免费的,而 OpenAccess 是 399 美元。 虽然带有 nHibernate 模板的 CodeSmith 价格为 99-399 美元,但如果您希望 nHibernate 轻松实现自动化。 看起来 OpenAccess 在数据层具有更高的透明度,并且可能更易于维护。 但是,如果您使用 Spring.Net 之类的东西,您不仅可以让 nHibernate 自动化数据,还可以自动化服务层。 不过对此持保留态度,因为 nHibernate 和 Spring.Net 是另一批需要维护的配置文件。 我敢打赌 OpenAccess 是 GUI 友好的。 任何一种都可以,但是关于 nHibernate 有很多更多信息。

I would say nHibernate is free and OpenAccess is $399. Although CodeSmith with nHibernate templates is $99-$399 if you want nHibernate easily automated. It looks like OpenAccess has more transparency in the data layer and is probably easier to maintain. But, if you used something like Spring.Net you would not only have nHibernate automating the data but the service layer automated as well. Although take that with a grain of salt because nHibernate and Spring.Net are another batch of configuration files that need to be maintained. I bet OpenAccess is GUI friendly. Either one works, but there is alot more info out there on nHibernate.

碍人泪离人颜 2024-07-19 23:53:23

我自己也在想同样的事情。 一方面,NH 具有免费、开源的特点,但支持选项有限。 另一方面,知名工具提供商 OA 中又增加了一个相当新的功能。

OA 需要花钱,但你会得到支持。 NH 是免费的,但至少从我的短暂经验来看,支持是有限的且进展缓慢。

我认为两者都可能是不错的产品。 由于我已经是 Telerik 工具的用户,所以我决定尝试一下 OA。 无论如何,OA 及其支持都是有偿的。

NH 使用普通的类和对象,在类属性上没有任何修饰。 OA 需要装饰(由 OA Visual Studio GUI 很好地生成)。

NH 需要一个“会话”来对数据库执行一个工作单元; OA 称之为“范围”。 两者都使用“事务”。

OA 与 Visual Studio 集成,可以与数据库进行正向和反向映射。 正向映射使您可以设计类,然后将它们“推送”到数据库中以实现持久化。 “反向”适用于“领域模型”开发人员,这是我更喜欢的。

OA 无疑正在经历一些重大更新,因为 Telerik 最近收购并发布了 OpenAccess(以前由 Vanatec(德国)拥有),正在“迎头赶上”。

就“易用性”和“性能/可扩展性”的观点而言,我希望我知道各自的立场。 我确信有人可以在两者之间进行诚实的测试并做出这些决定。

我喜欢 NH 的一件事是,它提供了可用的模板,不仅可以为“哑”业务对象(现在都是 OA 生成)生成所需的代码,还可以为 BLL 和 DLL 生成所需的代码。 在与 Telerik 进行多次交谈后,我的印象是他们计划提供更多代码生成选项,以便 OA 开箱即用更有用。

希望这可以帮助! 请有人尝试获取有关性能问题的一些统计数据。

I'm wondering the same thing myself. On one hand, there's NH with its free, open-source self, but with limited support options. On the other, a fairly new addition to a well-known tool provider's box, OA.

OA costs money, but you get support. NH is free, but support has been known at least in my brief experience to be limited and slow in coming.

I think both are likely fine products. I've decided to give OA a try since I am already a user of Telerik's tools. OA and its support are being paid for anyway.

NH uses plain classes and object with no decorations on the class properties whatsoever. OA requires decorations (nicely generated by the OA Visual Studio GUI).

NH requires a "session" in which to do a unit of work with the database; OA calls it "scope". Both use "transaction".

OA has integration with Visual Studio and can both forward- and reverse-map to and from a database. Forward mapping is so you can design your classes and then "push" those into the database for persistence. The "reverse" is for you "domain model" developers which is what I prefer.

OA is definitely undergoing some major updates as Telerik plays "catch up" per its recent acquisition and release of OpenAccess, formerly owned by Vanatec (out of Germany).

As far as an "ease of use" and "performance / scalability" standpoint, I wish I knew where each stood. I'm sure someone out there could put together an honest test between the two and make those determinations.

One thing I like about NH is the available templates to generate the needed code not just for the "dumb" business objects (which is all OA generates now), but for a BLL and DLL. After much conversation with Telerik, I have the impression they plan for more code-generating options so OA is more useful out of the box.

Hope this helps! Someone please try to get some stats on the performance issues.

能否归途做我良人 2024-07-19 23:53:23

我没有使用过它,但对我来说一个显而易见的好处是 OpenAccess 得到了 Telerik 的支持,而 nHibernate 得到了社区的支持。 如果您准备好在没有支持保证的情况下采用开源解决方案,这可能是一个决定因素,具体取决于您的公司。

编辑

作为记录,我是 nHibernate 和开源的大力支持者。 过去六个月我一直在使用 nHibernate,将它用于我们 Web 应用程序中的所有新工作。 对于我现在的公司来说,它非常适合(初创公司喜欢免费)。

然而,我以前的员工很难接受社区支持的组件作为其基础设施的核心部分。 这是完全合理的,因为这些公司的网站是他们唯一的收入来源。 您是否愿意将您的整个业务押注于没有相关责任的软件上? 有些人不愿意冒这个风险。

就我个人而言,我发现对 nHibernate 的支持与某些商业供应商相当,甚至更好。

我的观点不是要抨击 OSS,而是要强调使用有公司支持、人员配备齐全且专门的支持渠道的软件的好处之一。

I've not used it but one benefit obvious to me, is OpenAccess is supported by Telerik, where as nHibernate is supported by the community. Depending on your company this can be a deciding factor if your ready to embrace open source solutions with no guarentee of support.

Edit

For the record I am a big supporter of nHibernate, and open source in general. I have been using nHibernate for the last six months, using it for all new work in our web application. For my current company it is a good fit (Startups love free).

However, my previous employeer, would have had a very difficult time accepting a community supported component as a core piece of their infrastructure. This is perfectly reasonable as these companies' web sites are their sole source of revenue. Would you want to stake your entire business on software that has no accountability associated with it? Some people wouldn't want to take that risk on.

Personally I have found the support for nHibernate to be on par and even better with some commercial vendors.

My point is not to bash OSS, but to highlight one benefit of using software that has a coporate backing, with a fully staffed and dedicated support channel.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文