SchematicNeo4j 0.1.0-beta
See the version list below for details.
dotnet add package SchematicNeo4j --version 0.1.0-beta
NuGet\Install-Package SchematicNeo4j -Version 0.1.0-beta
<PackageReference Include="SchematicNeo4j" Version="0.1.0-beta" />
paket add SchematicNeo4j --version 0.1.0-beta
#r "nuget: SchematicNeo4j, 0.1.0-beta"
// Install SchematicNeo4j as a Cake Addin #addin nuget:?package=SchematicNeo4j&version=0.1.0-beta&prerelease // Install SchematicNeo4j as a Cake Tool #tool nuget:?package=SchematicNeo4j&version=0.1.0-beta&prerelease
SchematicNeo4j
A code-first approach to manage a consistent Neo4j graph schema for a domain layer that is defined in a .NET library.
For Developers
Defining your domain schema
Identifying Nodes and their Node Key
Annotate the class with a NodeAttribute (or it can also default to the class name)
[Node(Label = "Person")]
public class Class1 {}
public class Person {}
[Node]
public class Person {}
Annotate the properties that make up the Node Key
public class Car {
[NodeKey]
public string Make { get; set; }
[NodeKey]
public string Model { get; set;}
}
SchematicNeo4j.Extensions
There are a few provided extensions that we can take advantage of when using the CustomAttributes. Assume the following Vehicle definition:
public class Vehicle {
[NodeKey]
public string Make { get; set; }
[NodeKey]
public string Model { get; set;}
[NodeKey]
public string ModelYear { get; set; }
}
We can get the Label by:
// for a type
var theLabel = typeof(Vehicle).Label();
We can get the Node Key properties by:
// for a type
List<string> vehicleNodeKey = typeof(Vehicle).NodeKey();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Neo4j.Driver (>= 1.7.2)
- SchematicNeo4j.Attributes (>= 0.1.0-beta)
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 |
---|---|---|
5.0.2 | 133 | 4/25/2024 |
5.0.1 | 130 | 4/16/2024 |
5.0.0 | 106 | 4/11/2024 |
1.3.0 | 588 | 10/2/2020 |
1.0.0 | 521 | 11/19/2019 |
0.1.2-beta | 421 | 6/18/2019 |
0.1.1-beta | 409 | 6/17/2019 |
0.1.0-beta | 425 | 6/7/2019 |
Initial Release with methods that can accept an assembly, a collection of types, or a single type.
Methods:
Schema.Initialize
NodeKey.Create/Drop/Exists/MatchesExisting