Stardust.Paradox.Data 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Stardust.Paradox.Data --version 1.2.0
                    
NuGet\Install-Package Stardust.Paradox.Data -Version 1.2.0
                    
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="Stardust.Paradox.Data" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Stardust.Paradox.Data" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Stardust.Paradox.Data" />
                    
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 Stardust.Paradox.Data --version 1.2.0
                    
#r "nuget: Stardust.Paradox.Data, 1.2.0"
                    
#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.
#addin nuget:?package=Stardust.Paradox.Data&version=1.2.0
                    
Install Stardust.Paradox.Data as a Cake Addin
#tool nuget:?package=Stardust.Paradox.Data&version=1.2.0
                    
Install Stardust.Paradox.Data as a Cake Tool

Usage (asp.net core)

Startup.cs

ConfigureServices

Add the generated entity implementations to the IOC container (I will provide an extention method to make this easier)

 services.AddEntityBinding((entityType, entityImplementation) => services.AddTransient(entityType, entityImplementation))
        .AddScoped<MyEntityContext,MyEntityContext>()
        .AddScoped<IGremlinLanguageConnector>(s => new CosmosDbLanguageConnector(DbAccountName, AccessKey, "databaseName","collectionName"));

Defining the model

[VertexLabel("person")]
public interface IPerson : IVertex
{
    string Id {get;}

    string FirstName { get; set; }

    string LastName { get; set; }
    
    string Email { get; set; }

    IEdgeCollection<IPerson> Parents { get; }

    IEdgeCollection<IPerson> Children { get; }

    IEdgeCollection<IPerson> Siblings { get; }

    [EdgeLabel("city")] //pointing to the Residents property in ICity
    IEdgeReference<ICity> HomeCity { get; }//use IEdgeReference to enable task-async operations

    IEdgeCollection<ICompany> Employers { get; }
}

[VertexLabel("city")]
public interface ICity : IVertex
{
    string Id { get; }

    string Name { get; set; }

    string ZipCode { get; set; }
    

   [ReverseEdgeLabel("city")] //pointing to the HomCity property in IPerson
    IEdgeCollection<Iperson> Residents { get; } //use IEdgeCollection to enable task-async operations on the collection

    IEdgeReference<ICountry> Country { get; }
}

[VertexLabel("company")]
public interface ICompany : IVertex
{
    string Id { get; }

    string Name { get; set; }

    IEdgeCollection<ICompany> Employees { get; }
}

[VertexLabel("country")]
public interface ICountry : IVertex
{
    string Id { get; }

    string Name { get; set; }

    string CountryCode { get; set; }

    string PhoneNoPrefix { get; set; }

    IEdgeCollection<ICity> Cities { get; }
}

Defining the entity context and generating the entity implementations

public class MyEntityContext : Stardust.Paradox.Data.GraphContextBase
{
    public IGraphSet<IPerson> Persons => GraphSet<IPerson>();

    public IGraphSet<ICity> Cities => GraphSet<ICity>();

    public IGraphSet<ICountry> Countries => GraphSet<ICountry>();

    public IGraphSet<ICompany> Companies => GraphSet<ICompany>();

    public MyEntityContext(IGremlinLanguageConnector connector, IServiceProvider resolver) : base(connector, resolver)
    {
    }

    protected override bool InitializeModel(IGraphConfiguration configuration)
    {
        //Added some fluent configuration of the edges
        configuration.ConfigureCollection<IPerson>()
                .AddEdge(t => t.Children, "children").Reverse<IPerson>(t => t.Parents)
            .ConfigureCollection<ICity>()
            .ConfigureCollection<ICountry>()
                .AddEdge(t=>t.Cities).Reverse<ICountry>(t=>t.Country)
            .ConfigureCollection<ICompany>()
                .AddEdge(t => t.Employees, "employees").Reverse<IPerson>(t => t.Employers);
        return true;
    }
}

Product 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.  net9.0 was computed.  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 was computed.  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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Stardust.Paradox.Data:

Package Downloads
Stardust.Paradox.Data.Providers.Gremlin

Entityframework styled tool for accessing gremlin based graph databases like CosmosDB and Apache Tinkerpop A database connector based on gremlin.net

Stardust.Paradox.Data.Providers.CosmosDb

[This package will be deprecated in V 3.0, consider moving to 'Stardust.Paradox.Data.Providers.Gremlin'] Connector for CosmosDb using the document client

Veracity.DomainEvents

Client package for consuming domain events from Veracity

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0-rc03 845 2/14/2020
3.0.0-rc01 572 2/14/2020
2.3.16 326 11/1/2024
2.3.15 1,411 10/30/2024
2.3.14 3,630 10/20/2023
2.3.13 163 10/20/2023
2.3.10 341 9/22/2023
2.3.9 298 9/7/2023
2.3.8 3,218 2/7/2023
2.3.7 3,044 5/4/2022
2.3.6 5,409 10/12/2020
2.3.5 527 10/7/2020
2.3.4 3,835 1/13/2020
2.3.3 669 1/8/2020
2.3.2 599 1/8/2020
2.3.1 552 1/7/2020
2.3.0 1,172 12/2/2019
2.2.0 1,035 11/12/2019
2.1.7 565 11/5/2019
2.1.6 572 10/8/2019
2.1.5 568 9/16/2019
2.1.4 566 8/13/2019
2.1.3 1,496 6/5/2019
2.1.2 648 5/28/2019
2.1.1 2,050 4/2/2019
2.1.0 1,223 4/2/2019
2.0.6 803 4/1/2019
2.0.5 1,225 3/27/2019
2.0.4 1,051 3/6/2019
2.0.0 1,146 2/20/2019
2.0.0-pre29 597 2/19/2019
2.0.0-pre26 566 2/14/2019
2.0.0-pre23 563 2/12/2019
2.0.0-pre15 572 2/6/2019
2.0.0-pre11 617 2/4/2019
2.0.0-pre09 576 1/25/2019
2.0.0-pre02 633 1/16/2019
2.0.0-pre01 663 12/5/2018
1.4.9 694 2/8/2019
1.4.8 832 12/6/2018
1.4.7 1,253 11/28/2018
1.4.5 824 11/21/2018
1.4.4 776 11/20/2018
1.4.3 1,247 11/6/2018
1.4.1 791 10/30/2018
1.4.0 803 10/22/2018
1.3.11 794 10/16/2018
1.3.5 832 10/15/2018
1.3.4 880 10/8/2018
1.3.3 892 10/2/2018
1.3.2 904 9/11/2018
1.3.1 984 8/23/2018
1.3.0 1,408 8/23/2018
1.2.0 962 8/20/2018
1.1.5 947 8/15/2018
1.0.4 1,112 8/14/2018
1.0.3 921 8/13/2018
1.0.2 919 8/13/2018
1.0.1 1,197 8/10/2018
1.0.0-pre005 958 7/3/2018
1.0.0-pre001 1,219 6/11/2018

Added fluent configuration of edge references
Added basic Edge properties support