Using the powerGate .NET library

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

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

The .Net library requires your project targeting at least .NET framework 4.5 !

Install powerGate on customer machine

When shipping your projects binaries to your customer, also the customers machine requires a powerGate installation.
Therefore delivering 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"]);