Route4MeDbLibrary 1.0.0.2

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

// Install Route4MeDbLibrary as a Cake Tool
#tool nuget:?package=Route4MeDbLibrary&version=1.0.0.2                

Usage Example of the Route4MeDbLibrary package (.net core)

This simple console c# (.net core) project demonstrates the functionalities of the Route4MeDbLibrary package.

The project is done with the Visual Studio 2019.

Project Implementation Steps

  1. Create console c# (.net core) project;

  2. Search NuGet for the package Route4MeDbLibrary and install it in the created project;

  3. Add to the project the file RunExamples.cs.

  4. Write in the Program.cs.

using System;

namespace Route4MeDbExample
{
    class Program
    {
        /// <summary>
        /// Make sure to replace the 11111111111111111111111111111111 (32 characters) demo API key with your API key.
        /// With the demo API key, the Route4Me system provides only limited functionality.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            var runExample = new RunExamples(Route4MeDB.Route4MeDbLibrary.DatabaseProviders.InMemory);

            runExample.c_ApiKey = "11111111111111111111111111111111";

            #region // Run the examples. Note: uncomment a line for executing.
            // runExample.CreateRoute4MeDatabase();

            // runExample.CreateAddressBookContact();

            // runExample.CopyRouteJsonResponseToDatabase();

            // runExample.CreateOptimizationAndSaveToDatabase();

            runExample.ExportOrderEntityToSdkOrderObject();
            #endregion

            Console.ReadKey();
		}
	}
}
  1. The module RunExamples contains 5 examples (methods):
  • CreateRoute4MeDatabase - demonstrates how to create a database with Route4Me data structure in the specified database provider.
  • CreateAddressBookContact - demonstrates how to initialize and save in the database an address book contact.
  • CopyRouteJsonResponseToDatabase - demonstrates how to import JSON content of the Route4Me route object and save it in the database.
  • CreateOptimizationAndSaveToDatabase - demonstrates how to create an optimization in the Route4Me account and simultaneously save it in the database.
  • ExportOrderEntityToSdkOrderObject - demonstrates how to initialize and save the order to the order entity and export it to the SDK order object.

Create database in the appropriate database provider if it doesn't exist, set API key and run the project.

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. 
.NET Core netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 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
1.0.1.2 492 1/30/2021
1.0.1.1 422 1/26/2021
1.0.0.2 563 12/16/2019
1.0.0.1 625 12/14/2019