是否可以使用 C# 来处理 OrientDB?
是否有 OrientDB 和 C# 的实现、API 或示例。我之所以关注 OrientDB,是因为它是我发现的唯一一个结合了图和文档的数据库。
关于我应该如何尝试这个的任何建议。
我的下一个选择是RavenDB,但我不确定它是否支持联接或链接文档?
有什么想法...
Are there any implementations, api or examples of OrientDB and C#. The reason I am looking at OrientDB is becuase it's the only one that I found that is a combination of Graph and Document.
Any suggestions on how I should try this.
My next choice is RavenDB, but I am not sure if it supports joins or linked documents?
Any thoughts...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
OrientDB 有一个适用于 .NET 的官方二进制驱动程序
看这里 http://orientdb.com/docs/3.0.x/
使用示例OrientDB-NET.binary
OrientDB has an official binary driver for .NET
look here http://orientdb.com/docs/3.0.x/
Example of usage OrientDB-NET.binary
目前 OrientDB 支持 REST/JSON 协议和本机二进制协议。
REST 协议有 Python 和 Javascript 包装器,为什么本机协议有 C 和 PHP 包装器。我不知道 C# 包装器是否正在工作,但查看规范 ( http: //code.google.com/p/orient/wiki/OrientDB_REST)为 C# 编写一个应该很简单。我在 JUG 会议上亲自见过该项目的架构师,我必须说 OrientDB 是一个非常有前途的项目。 Luca Garulli(建筑师)也是一个非常乐于助人的人,所以如果您需要更多信息,可以写信给他。
Currently OrientDB supports both a REST/JSON protocol and a native binary protocol.
There are Python and Javascript wrappers for the REST protocol whyle there are C and PHP wrappers for the native protocol. I don't know if a C# wrapper is in the working however looking at the specifications ( http://code.google.com/p/orient/wiki/OrientDB_REST ) writing one for C# should be straightforward. I have met in person the architect of the project at a JUG meeting and I must say that OrientDB is a very promising project. Also Luca Garulli ( the architect ) is a very available person, so you may write him if you need more information.
我刚刚为 OrientDB 开发了 REST 客户端的第一个版本。
http://netorientdb.codeplex.com
I just developed a first version of a REST client for OrientDB.
http://netorientdb.codeplex.com
关于 RavenDB 的第二个问题,它没有关系意义上的“连接”,但您始终可以通过存储文档 id 字段来存储对其他文档的引用。以下是常见问题解答中的加入问题。他们给出的建议之一是非规范化(不仅仅存储相关文档的 ID),这可能是一个很大的权衡。
Regarding your second question on RavenDB, it doesn't have "joins" like in the relational sense but you can always store references to other documents by storing it's document id field. Here is the join question in the FAQ. One of the suggestions they give is to denormalize (store more than just the Id of the related document) which can be a big trade-off to make.
我最近刚刚遇到这个存储库。我还没有查看代码或使用它,但它具有用于以下功能的 .NET 接口:
BluePrints
Rexster
管道
这些实用程序可用于连接多个图形数据库(允许蓝图的数据库),包括 neo4j 和 OrientDB。有关更多信息,请参阅 TikerPop。
I just recently came across this repository. I haven't looked at the code or used it yet, but it has .NET interfaces for:
BluePrints
Rexster
Pipes
These utilities can be used to connect with multiple Graph Databases (those that allow BluePrints) including neo4j and OrientDB. For more information also look at TikerPop.