Using the powerGate .NET library

Follow these steps to use the powerGate library in your C# project

With the installation of powerGate on your development machine, the required .NET library will be installed for all users.
It contains the relevant API’s to communicate with an ERP System via OData.

The powerGate .NET library requires your project to target at least .NET framework v4.7!

Install powerGate on customer machine

When shipping your projects binaries to your customer, also the customers machine requires a powerGate installation.
Therefore delivering the powerGate.Erp.Client assembly within your project should be avoided, in order to not lose the benefits from powerGates Update strategy.

See the complete example:

using System;
using System.Collections.Generic;
using powerGate.Erp.Client;

namespace HelloWorldServices
    class Program
        static void Main(string[] args)
            using (var client = new ErpClient())
                var northwindService = client.ConnectErp(new Uri(""));
                var categories = client.Services["Northwind.svc"].EntitySets["Categories"];

                var categoryKeys = new Dictionary<string, object>{ {"CategoryID", 3} };
                var category = categories.GetErpObject(categoryKeys);

                Console.WriteLine("Successful retrieved category '{0}' with Id '{1}'.", category["CategoryName"], (int)category["CategoryID"]);