Camelot .NET Connector is now available in the NuGet Gallery

Having more and more developers wanting to streamline upgrades, starting new projects and so on we decided to add our binaries to the NuGet Gallery.

Installation

You may install it through the command line client or the package manager.

PM> Install-Package Camelot.SharePointConnector

Retrieve a license file

The license key manager is actually shipped with the NuGet package, check your projectroot\packages\Camelot.SharePointConnector.3.5.0\Camelot License Key Manager

Another way to retrieve a license is by manual registration of the MAC or FQDN in our customer portal, http://www.bendsoft.com/customer-portal/licenses/

Implementing the license

Copy the license to your Visual Studio project, when in place ensure to set the “Copy to Output Directory” parameter to “Copy always” or “Copy if newer”.

First code sample

From here on it’s regular .NET development :)

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();
        }
    }
}

Q&A at StackOverflow as usual!

This entry was posted in Camelot .NET Connector, SharePoint. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>