ExRam Gremlinq 不适用于 Cosmos DB
ExRam Gremlinq not working with Cosmos DB
NuGet 包:ExRam.Gremlinq.Core、ExRam.Gremlinq.Providers、ExRam.Gremlinq.Providers.CosmosDb
代码:
var _g = g.UseCosmosDb("example.gremlin.cosmos.azure.com", "myDb", "myGraphName", "myPrimaryKey==");
var result = await _g.V().FirstAsync();
图中已填充了两个顶点和它们之间的一条边。
预期:结果等于第一个顶点
结果:await _g.V().FirstAsync() 抛出异常消息
System.MissingMethodException: 'Method not found: 'Void Gremlin.Net.Driver.GremlinClient..ctor(Gremlin.Net.Driver.GremlinServer, Gremlin.Net.Structure.IO.GraphSON.GraphSONReader, Gremlin.Net.Structure.IO.GraphSON.GraphSONWriter, System.String, Gremlin.Net.Driver.ConnectionPoolSettings, System.Action`1<System.Net.WebSockets.ClientWebSocketOptions>)'.'
有什么想法吗?
感谢@Guru Stron 的评论,您现在明白了:
“我删除了对 Gremlin.Net 的引用,现在可以使用了!”
我帮你 post 作为答案,这可能对其他社区成员有益。
NuGet 包:ExRam.Gremlinq.Core、ExRam.Gremlinq.Providers、ExRam.Gremlinq.Providers.CosmosDb
代码:
var _g = g.UseCosmosDb("example.gremlin.cosmos.azure.com", "myDb", "myGraphName", "myPrimaryKey==");
var result = await _g.V().FirstAsync();
图中已填充了两个顶点和它们之间的一条边。
预期:结果等于第一个顶点
结果:await _g.V().FirstAsync() 抛出异常消息
System.MissingMethodException: 'Method not found: 'Void Gremlin.Net.Driver.GremlinClient..ctor(Gremlin.Net.Driver.GremlinServer, Gremlin.Net.Structure.IO.GraphSON.GraphSONReader, Gremlin.Net.Structure.IO.GraphSON.GraphSONWriter, System.String, Gremlin.Net.Driver.ConnectionPoolSettings, System.Action`1<System.Net.WebSockets.ClientWebSocketOptions>)'.'
有什么想法吗?
感谢@Guru Stron 的评论,您现在明白了:
“我删除了对 Gremlin.Net 的引用,现在可以使用了!”
我帮你 post 作为答案,这可能对其他社区成员有益。