Is it possible to work with OrientDB using C#?

前端 未结 5 2320
有刺的猬
有刺的猬 2021-02-14 09:02

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

5条回答
  •  时光取名叫无心
    2021-02-14 09:12

    OrientDB has an official binary driver for .NET look here http://orientdb.com/docs/3.0.x/

    Example of usage OrientDB-NET.binary

    string release = OClient.CreateDatabasePool("127.0.0.1", 2424, "ModelTestDB", ODatabaseType.Graph, "admin", "admin", 10, "ModelTestDBAlias");
    using(ODatabase database = new ODatabase("ModelTestDBAlias"))
    {
        // prerequisites
        database
          .Create.Class("TestClass")
          .Extends()
          .Run();
    
        OVertex createdVertex = database
          .Create.Vertex("TestClass")
          .Set("foo", "foo string value")
          .Set("bar", 12345)
          .Run();
    }
    

提交回复
热议问题