Skip to content

petraselmer/neo4j-dotnet-driver

 
 

Repository files navigation

Neo4j .NET Driver

Minimum viable snippet

Add the driver to your project using Nuget Package Manager:

PM> Install-Package Neo4j.Driver -Pre

Connect to a Neo4j 3.1.0+ database

using(var driver = GraphDatabase.Driver( "bolt://localhost:7687" ))
using(var session = driver.Session())
{
    var result = session.Run("CREATE (n) RETURN n");
}

Getting the Driver

The Neo4j Driver is distributed exclusively via Nuget and can be added to your project via the Package Manager.

Milestones

Available on Nuget

Snapshots

Snapshot builds are available at our MyGet feed, add the feed to your Nuget Sources

Building

Visual Studio Version

The driver is written in C# 6 so will require Visual Studio 2015 (community edition).

Integration Tests

The integration tests will use neokit Python scripts to download and install a database instance on your local machine. They can fail for three main reasons:

  1. Python.exe is not installed and added in the system PATH variable
  2. The tests aren't run as Administrator (so you'll need to run Visual Studio as administrator)
  3. You have an instance of Neo4j already installed / running on your local machine.

Run tests

The simplest way to run all tests from command line is to run runTests.ps1 powershell script:

.\Neo4j.Driver\runTests.ps1

About

Neo4j Bolt driver for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 94.2%
  • Gherkin 5.7%
  • PowerShell 0.1%