Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.NET client binding for Neo4j

License

NotificationsYou must be signed in to change notification settings

DotNet4Neo4j/Neo4jClient

Repository files navigation


A .NET client forNeo4j. Supports Cypher queries via fluent interfaces, and some indexing operations.

Grab the latest drop straight from theNeo4jClient package onNuGet.

Readour wiki docs -Currently OUT OF DATE


Current Builds

The official Neo4jClient build and nuget package is automated viaAppVeyor.


Stable 4.xBuild status

Version 4.0.0 of Neo4jClient isnow the stable version. There have been a lot of changes, additions, removals, so it's likely there will be breaking changes.


Changing from 3.x to 4.x

This isn't an exhaustive list of things you need to do, but I'll try to add things if I've forgotten them.

Uris

You will need to use the correct URI for the server version you are connecting to:

GraphClient

  • 3.x server:http://localhost:7474/db/data
  • 4.x server:http://localhost:7474/

BoltGraphClient

  • 3.x or 4.x server:neo4j://localhost:7687
  • Worth reviewing theNeo4j Documentation to see what you need to use.

Async

As this release is 100%async you will need to update any calls toResults orExecuteWithoutResults to theirAsync equivalents.


Breaking Changes

  • Async endpoints only
    • To get this release out,Neo4jClient isAsync only now.
  • Transactions will no longer use theTransactionScope class which means thatMSDTC will no longer work.
    • This has been an issue since the dawn of Core/NetStandard -TransactionScope may be in NetStandard now - but the other classes the Transaction code was relying on wasn't.
  • TheGraphClient andBoltGraphClient will no longer support Neo4j 3.4 or lower.
    • Largely this is because theNeo4j.Driver that does theBolt side of things only targets 3.5+, and keeping all the backwards compatibility means a lot of work, for little gain.

Dependency Changes


Historical Notes

If you're changing from2.x to3.x, you'll want the below information, but you should really be on4.x unless you have to target an older DB instance.

Changes in 3.x

  • Bolt!
  • Transactions now useAsyncLocal<> instead ofThreadStatic
    • Transactions still don't work in the .NET Core version for the same reason as listed below (inBreaking Changes in 2.0)
    • TransactionScopedoes exist inNetStandard 2.0 - but some of the other bits surrounding the Transaction management doesn't.
  • JSON.NET updated to 10.0.3
  • PathResults doesn't work with Bolt, you need to usePathResultsBolt instead.

Dependency Changes in 2.0

  • JSON.NET updated to 9.0.1

Breaking Changes in 2.0

  • If using theDotNet Core version ofNeo4jClient - transactions willnot work. This will be returned when DotNet Core gets theTransactionScope (Seethis comment for more details).

License Information

Licensed under MS-PL. SeeLICENSE in the root of this repository for full license text.


Updates to the 3.x releases

I will not be updating the 3.x version of the client, the focus is on 4.x and the features that gives us. Neo4j no longer actively support Neo4j 3.4 so you should consider updating if you can. Largely - anyone using the3.x version of the client is coping with it's deficiencies, and as 4.x addresses most of them. ¯_(ツ)_/¯


[8]ページ先頭

©2009-2025 Movatter.jp