Ambystech.Neo4j.Repository
0.3.5
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Ambystech.Neo4j.Repository --version 0.3.5
NuGet\Install-Package Ambystech.Neo4j.Repository -Version 0.3.5
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.5" />
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.5" />
<PackageReference Include="Ambystech.Neo4j.Repository" />
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.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ambystech.Neo4j.Repository, 0.3.5"
#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.5
#: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.5
#tool nuget:?package=Ambystech.Neo4j.Repository&version=0.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Configure Neo4j connection in
appsettings.jsonoruser secrets:
{
"Neo4j-Uri": "bolt://localhost:7687",
"Neo4j-User": "neo4j",
"Neo4j-Password": "password"
}
- Register services:
builder.Services.AddNeo4jRepository();
builder.Services.AddSingleton<INodeConverter<YourEntity>, YourEntityConverter>();
builder.Services.AddScoped<IBaseGraphRepository<YourEntity>, YourEntityRepository>();
- 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).
License
MIT License - see LICENSE file for details.
| Product | Versions 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.
-
net10.0
- Ambystech.Neo4j.Repository.Contracts (>= 0.1.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- Neo4j.Driver (>= 5.28.3)
-
net8.0
- Ambystech.Neo4j.Repository.Contracts (>= 0.1.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- Neo4j.Driver (>= 5.28.3)
-
net9.0
- Ambystech.Neo4j.Repository.Contracts (>= 0.1.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- Neo4j.Driver (>= 5.28.3)
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 | 98 | 4/20/2026 |
| 0.6.0-beta0001 | 85 | 4/20/2026 |
| 0.5.0-beta0001 | 89 | 4/20/2026 |
| 0.4.0-beta0001 | 99 | 4/20/2026 |
| 0.4.0-alpha0001 | 112 | 1/8/2026 |
| 0.3.5 | 91 | 4/20/2026 |
| 0.3.4 | 97 | 4/20/2026 |
| 0.3.3 | 92 | 4/20/2026 |
| 0.3.1 | 92 | 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 | 100 | 4/20/2026 |
| 0.1.3 | 129 | 1/8/2026 |