Ambystech.Neo4j.Repository 0.3.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ambystech.Neo4j.Repository --version 0.3.4
                    
NuGet\Install-Package Ambystech.Neo4j.Repository -Version 0.3.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ambystech.Neo4j.Repository" Version="0.3.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ambystech.Neo4j.Repository" Version="0.3.4" />
                    
Directory.Packages.props
<PackageReference Include="Ambystech.Neo4j.Repository" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ambystech.Neo4j.Repository --version 0.3.4
                    
#r "nuget: Ambystech.Neo4j.Repository, 0.3.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ambystech.Neo4j.Repository@0.3.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ambystech.Neo4j.Repository&version=0.3.4
                    
Install as a Cake Addin
#tool nuget:?package=Ambystech.Neo4j.Repository&version=0.3.4
                    
Install as a Cake Tool

Ambystech.Neo4j.Repository

Ambystech.Neo4j.Repository

Neo4j Repository pattern implementation for .NET.

Overview

This library provides a repository implementation for Neo4j graph databases, enabling easy CRUD operations, relationship management, and search functionality.

Packages

  • Ambystech.Neo4j.Repository - Main repository implementation
  • Ambystech.Neo4j.Repository.Contracts - Base contracts and attributes

Installation

dotnet add package Ambystech.Neo4j.Repository
dotnet add package Ambystech.Neo4j.Repository.Contracts

Quick Start

  1. Configure Neo4j connection in appsettings.json or user secrets:
{
  "Neo4j-Uri": "bolt://localhost:7687",
  "Neo4j-User": "neo4j",
  "Neo4j-Password": "password"
}
  1. Register services:
builder.Services.AddNeo4jRepository();
builder.Services.AddSingleton<INodeConverter<YourEntity>, YourEntityConverter>();
builder.Services.AddScoped<IBaseGraphRepository<YourEntity>, YourEntityRepository>();
  1. Use the repository:
var repository = serviceProvider.GetRequiredService<IBaseGraphRepository<YourEntity>>();
var entities = await repository.GetAllAsync();

Features

  • Generic CRUD operations
  • Relationship management
  • Search and filtering
  • Soft delete support
  • Automatic relationship loading.

Example

See the example/ directory for a complete working example with a social network graph (Users, Posts, Likes, Dislikes).

Example Graph

License

MIT License - see LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0-beta0003 99 4/20/2026
0.6.0-beta0001 86 4/20/2026
0.5.0-beta0001 90 4/20/2026
0.4.0-beta0001 100 4/20/2026
0.4.0-alpha0001 112 1/8/2026
0.3.5 92 4/20/2026
0.3.4 98 4/20/2026
0.3.3 93 4/20/2026
0.3.1 93 4/20/2026
0.3.0-alpha0015 114 1/7/2026
0.3.0-alpha0014 112 1/7/2026
0.3.0-alpha0013 111 1/7/2026
0.3.0-alpha0012 118 1/6/2026
0.2.0 101 4/20/2026
0.1.3 129 1/8/2026