使用C#和U2(Universe)构建ORM [英] Building an ORM using C# and U2 (Universe)

查看:90
本文介绍了使用C#和U2(Universe)构建ORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找用于为Rocket U2(Universe)数据库平台创建ORM库的现有解决方案。  由于Universe不是真正的关系型数据库而且被认为是一个多值数据库,因此我在发现任何合适的供应商解决方案以创建这样的库方面没有多少成功。

I have been looking for existing solutions to utilize for creating an ORM library to the Rocket U2 (Universe) database platform.  Since Universe is not truly a relational database and is rather considered a multi-value database, I have not had much success in discovering any suitable vendor solutions to create such a library.

是否有人知道任何可能支持此数据库平台的供应商解决方案?  如果没有,是否有人可以为我提供有关如何为此数据库平台构建自己的自定义ORM解决方案的指导?  我过去只使用过现实解决方案
,例如Entity Framework和LINQ to SQL,因此,我对如何从头开始构建ORM并不是一个好主意。

Does anyone know of any vendor solutions which might be able to support this database platform?  If not, could anyone provide me with guidance on how to build my own custom ORM solution for this database platform?  I have only used off-the-shelf-solutions such as Entity Framework and LINQ to SQL in the past, therefore, I do not really have a good idea on how to build an ORM completely from scratch.

谢谢。

推荐答案

构建自己的ORM可能会有点困难。您可以使用NHibernate所做的功能,即使它严格连接到关系数据库,也可能有一些功能可以重用。毕竟,
NHibernate本质上只是传递XML和XSD,以便将业务级别对象与数据库相关联,并提供两者的映射。

It's probably going to be a little tough to build your own ORM. You may be able to use leverage what NHibernate does, even though it connects strictly to relational databases, there may be some functionality there that you may be able to re-use. After all, NHibernate is essentially just XML and XSD's that are passed around in order to relate your business level objects to the database, and provides the mapping of the two.

I我不熟悉U2数据库平台,但是如果你通过ODBC连接,那么NHibernate可能会有所帮助。

I'm unfamiliar with the U2 database platform, but if your're connecting via ODBC, then NHibernate may be helpful.


这篇关于使用C#和U2(Universe)构建ORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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