![]() |
VOOZH | about |
dotnet add package Neo4j.Berries.OGM --version 1.2.0-preview-6
NuGet\Install-Package Neo4j.Berries.OGM -Version 1.2.0-preview-6
<PackageReference Include="Neo4j.Berries.OGM" Version="1.2.0-preview-6" />
<PackageVersion Include="Neo4j.Berries.OGM" Version="1.2.0-preview-6" />Directory.Packages.props
<PackageReference Include="Neo4j.Berries.OGM" />Project file
paket add Neo4j.Berries.OGM --version 1.2.0-preview-6
#r "nuget: Neo4j.Berries.OGM, 1.2.0-preview-6"
#:package Neo4j.Berries.OGM@1.2.0-preview-6
#addin nuget:?package=Neo4j.Berries.OGM&version=1.2.0-preview-6&prereleaseInstall as a Cake Addin
#tool nuget:?package=Neo4j.Berries.OGM&version=1.2.0-preview-6&prereleaseInstall as a Cake Tool
This repository is home to berrybeat's dotnet OGM (Object-Graph-Mapping) library for neo4j. It supports basic queries, create, update, connect/disconnect relations.
This library is available in nuget and can be installed with the following command:
dotnet add package Neo4j.Berries.OGM
Note: This is a dotnet 8 specific library.
The following snippet demonstrates the idea of how this library will be used with dependency injection.
public class MoviesController(ApplicationGraphContext graphContext): ControllerBase
{
[HttpPost]
public async Task Create(Movie request)
{
graphContext.Movies.Add(request);
await graphContext.SaveChangesAsync();
}
[HttpPost]
public async Task Update(Movie request)
{
await graphContext.Movies
.Match(x => x.Where(y => y.Id, request.Id))
.UpdateAsync(x => x.Set(request)) //Sets the whole object
}
}
The queries as you see are not supported with LINQ and instead you need to use the designed Eloquent. Also to use the library you need to add the following to your appsettings.json.
{
"Neo4j": {
"Url": "<neo4j-address>",
"Username": "<neo4j-user>",
"Password": "<neo4j-password>",
"Database": "<neo4j-database-name>"
}
}
http://localhost:7687| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.0 | 2,058 | 11/26/2024 |
| 1.3.0-preview-9 | 2,077 | 9/3/2024 |
| 1.3.0-preview-8 | 525 | 7/30/2024 |
| 1.3.0-preview-7 | 207 | 7/24/2024 |
| 1.3.0-preview-6 | 244 | 7/23/2024 |
| 1.3.0-preview-5 | 221 | 7/18/2024 |
| 1.3.0-preview-4 | 650 | 6/10/2024 |
| 1.3.0-preview-3 | 423 | 6/5/2024 |
| 1.3.0-preview-2 | 201 | 6/4/2024 |
| 1.3.0-preview-13 | 803 | 9/3/2024 |
| 1.3.0-preview-12 | 184 | 9/3/2024 |
| 1.3.0-preview-11 | 207 | 9/3/2024 |
| 1.3.0-preview-10 | 211 | 9/3/2024 |
| 1.3.0-preview-1 | 193 | 6/2/2024 |
| 1.2.0 | 1,189 | 5/18/2024 |
| 1.2.0-preview-8 | 338 | 5/9/2024 |
| 1.2.0-preview-7 | 313 | 5/2/2024 |
| 1.2.0-preview-6 | 159 | 5/2/2024 |
| 1.2.0-preview-5 | 228 | 4/26/2024 |
| 1.2.0-preview-4 | 213 | 4/26/2024 |