Information for NuGet users

The Camelot .NET Connector is available through the NuGet package manager in Visual Studio.

PM> Install-Package Camelot.SharePointConnector

 

Howto setup a development license

Since NuGet users don't install the license key manager this process has to be done manually. To retrieve a license please

 

Getting started

Getting started with SharePoint Integrations is easy, install the package as suggested above or by using the packet manager console.

Nuget manager

Navigate to the customer portal and fetch a license and copy it to your Visual Studio project, when in place ensure to set the "Copy to Output Directory" parameter to "Copy always" or "Copy if newer".

Implement license file

Start coding!

using System;
using System.Data;

namespace NuGetTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Camelot.SharePointConnector.Data.SharePointConnection.ProvideLicenseFile(@"license_signed.xml");
            string conn = "server=sp.bendsoft.com;authentication=NTLM;user=xxx;password=xxx";

            var dt = Camelot.SharePointConnector.Data.Helper.ExecuteDataTable("SHOW TABLES", conn);

            foreach (DataRow row in dt.Rows)
            {
                Console.WriteLine(row["Title"]);
            }

            Console.Read();
        }
    }
}

 

Visa     MasterCard