Save Big on Cyber Monday! Up to 40% Off
ends in   {{days}}
Days
{{timeFormat.hours}}
:
{{timeFormat.minutes}}
:
{{timeFormat.seconds}}

Getting Started With dotConnect for Zoho CRM

Below are some resources to help you maximize your experience with dotConnect for Zoho CRM.

dotConnect for Zoho CRM is a high-performance ADO.NET data provider with ORM support that offers fast, encrypted access to Zoho CRM data for application development.

  • EF Core, Dapper, NHibernate ORM support
  • Local SQL engine with support for SQL-92
  • Compatibility with various .NET platforms and versions
  • Full compliance with ADO.NET
  • Integration with Visual Studio

Code examples

using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "" +
    "Authentication Type=OAuthInteractive;" +
    "License key=**********";

            try
            {
                using (ZohoConnection connection = new ZohoConnection(connectionString))
                {
                    connection.Open();
                    Console.WriteLine("Connection successful.");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }

    }
}
PM> Install-Package Devart.Data.Zoho
using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string domain = "YOUR_DOMAIN";
            string clientId = "YOUR_CLIENT_ID";
            string clientSecret = "YOUR_CLIENT_SECRET";

            string connectionString = "Authentication Type=OAuthInteractive;" +
                                      $"Domain={domain};" +
                                      $"Client Id={clientId};" +
                                      $"Client Secret={clientSecret};" +
                                      "License key=**********";

            try
            {
                using (ZohoConnection connection = new ZohoConnection(connectionString))
                {
                    connection.Open();
                    Console.WriteLine("Connection successful.");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }
    }
}
PM> Install-Package Devart.Data.Zoho
using System;

using System.Data;
using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "Authentication Type=OAuthInteractive;License key=**********";

            try
            {
                using (ZohoConnection connection = new ZohoConnection(connectionString))
                {
                    connection.Open();
                    Console.WriteLine("Connection successful.");

                    string sql = "SELECT \"Account Name\", Phone, Website, \"Account Type\" FROM Accounts";

                    using (ZohoCommand command = new ZohoCommand(sql, connection))
                    using (ZohoDataAdapter adapter = new ZohoDataAdapter(command))
                    {
                        DataTable accountsTable = new DataTable();
                        adapter.Fill(accountsTable);

                            foreach (DataRow row in accountsTable.Rows)
                        {
                                string accountName = row.Field("Account_Name") ?? string.Empty;
                                string phone = row.Field("Phone") ?? string.Empty;
                                string website = row.Field("Website") ?? string.Empty;
                                string accountType = row.Field("Account_Type") ?? string.Empty;

                            Console.WriteLine($"Name: {accountName} | Phone: {phone} | Website: {website} | Type: {accountType}");
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }
    }
}
PM> Install-Package Devart.Data.Zoho
using System;
using System.Linq;

namespace ZohoEFCore
{
    class Program
    {
        static void DisplayAccounts()
        {
            using (var context = new ZohoModel())
            {
                var accounts = context.Accounts
                    .Select(a => new { a.AccountName, a.Phone, a.Website, a.AccountType })
                    .ToList();

                foreach (var account in accounts)
                {
                    Console.WriteLine($"Account Name: {account.AccountName}");
                    Console.WriteLine($"Phone: {account.Phone}");
                    Console.WriteLine($"Website: {account.Website}");
                    Console.WriteLine($"Account Type: {account.AccountType}");
                    Console.WriteLine(new string('-', 20));
                }
            }
        }
    }
}
PM> Install-Package Devart.Data.Zoho.EFCore
using System;
using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "Authentication Type=OAuthInteractive;License key=**********";

            try
            {
                using (ZohoConnection connection = new ZohoConnection(connectionString))
                {
                    connection.Open();
                    Console.WriteLine("Connection successful.");

                    // Example: insert a new Account using ZohoLoader
                    Console.WriteLine("\nInserting a sample Account via ZohoLoader...");
                    using (ZohoLoader loader = new ZohoLoader())
                    {
                        loader.Connection = connection;
                        loader.TableName = "Accounts";
                        loader.Open();

                        loader.SetValue("Account Name", "Example Account via Loader");
                        loader.SetValue("Phone", "123-456-7890");
                        loader.SetValue("Website", "https://example.com");
                        loader.SetValue("Account Type", "Customer");

                        loader.NextRow();
                        loader.Close();
                    }
                    Console.WriteLine("Insert complete.\n");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }
    }
}
PM > Install-Package Devart.Data.Zoho
using System;
using System.Data;
using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "Authentication Type=OAuthInteractive;License key=**********";

            try
            {
                using (ZohoConnection connection = new ZohoConnection(connectionString))
                {
                    connection.Open();
                    Console.WriteLine("Connection successful.");

                    // Example: UPDATE with parameters
                    ZohoCommand cmd = connection.CreateCommand();
                    cmd.CommandText = "UPDATE Accounts SET Website = :website WHERE \"Account Name\" = :name";
                    cmd.Parameters.Add("website", DbType.String).Value = "www.devart.com";
                    cmd.Parameters.Add("name", DbType.String).Value = "sample name 1";

                    int affected = cmd.ExecuteNonQuery();
                    Console.WriteLine($"Updated {affected} row(s).");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }
    }
}
PM> Install-Package Devart.Data.Zoho
using System;
using System.Data;
using Devart.Data.Zoho;

namespace ZohoCrmConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "Authentication Type=OAuthInteractive;License key=*********";

            try
            {
                PerformAsync(connectionString);
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred: " + ex.Message);
            }
        }

        static void PerformAsync(string connectionString)
        {
            ZohoConnection myConnection = new ZohoConnection(connectionString);
            ZohoCommand myCommand = new ZohoCommand(
                "UPDATE Accounts SET Website = 'www.devart.com' WHERE \"Account Name\" = 'sample name 1'");

            myCommand.Connection = myConnection;
            myConnection.Open();
            int rowsAffected;
            try
            {
                IAsyncResult myResult = myCommand.BeginExecuteNonQuery(null, null);
                Console.Write("In progress...");
                while (!myResult.IsCompleted)
                {
                    Console.Write(".");
                    // Perform here any operation you need
                }
                rowsAffected = myCommand.EndExecuteNonQuery(myResult);
                Console.WriteLine();
                Console.WriteLine("Operation complete. Rows Affected: " + rowsAffected);
            }
            catch
            {
                Console.WriteLine("Error during execution.");
            }
            finally
            {
                myConnection.Close();
            }
        }
    }
}
PM> Install-Package Devart.Data.Zoho

How-to articles

.NET Connection Strings for Zoho CRM
Learn how to set up connection strings properly when working with dotConnect for Zoho CRM in .NET applications.
Connect to Zoho CRM in .NET
Explore how to establish a connection between .NET applications and Zoho CRM using ADO.NET.
Connect to Zoho CRM with EF Core
Find out how to connect Zoho CRM to your application using EF Core and ADO.NET.
Connect to Zoho CRM in Blazor
Learn how to connect your ASP.NET Core Blazor application to Zoho CRM: A complete guide for developers with code examples and best practices.
Connect to Zoho CRM in MAUI
See how to build .NET MAUI applications and perform CRUD operations with Zoho CRM using ADO.NET.

Documentation

Licensing
Licensing
A detailed technical reference on embedding license information - a required resource for applications built with dotConnect for Zoho CRM.
DataAdapter Features
DataAdapter features
A guide to using the ZohoDataAdapter class for interacting with Zoho CRM data in a disconnected architecture.
Parameters
Parameters
An overview of SQL query parameters and their synchronization, along with practical insights into working with stored procedures.
SQL translation
SQL translation
Since remote execution is significantly faster than client-side processing, using translatable SQL ensures optimal query performance.

dotConnect Universal

Get universal access to data from a variety of sources, including SQL Server, Oracle, PostgreSQL, MySQL, SQLite, DB2, InterBase, Microsoft Access, and Firebird. Other servers can be accessed through their ADO.NET, OLE DB and ODBC providers.

FAQ

What is the trial period for dotConnect for Zoho CRM?
dotConnect for Zoho CRM offers a fully functional 30-day trial. During this period, you can use and evaluate all features without limitations. After the trial ends, you can purchase a license to keep using the product.
Why do I need to install the product if NuGet is available?

dotConnect for Zoho CRM provides two sets of assemblies, and the choice depends on your project type:

  • For .NET Framework projects: Use the Devart assemblies included with the product installer.
  • For .NET (.NET Core/.NET 5+) projects: Use the assemblies available via NuGet packages.
Where should I apply my License Key?

The method for applying your license depends on your project type:

  • For .NET (.NET Core/.NET 5+) projects, apply the License Key at runtime using the License Key connection string parameter.
  • For .NET Framework projects, no license key is necessary. Download and install the licensed version of dotConnect from your Devart Customer Portal.
Do end-users of my application need a Devart license, or do I have to pay additional fees for deploying my software?

No, end users do not need a Devart license, and there are no additional deployment fees, as long as you hold a valid Devart license.

According to the EULA, you're allowed to redistribute the following runtime assemblies with your application:

  • Devart.Data.Zoho CRM.dll
  • Devart.Data.dll

You can include them in your app's folder (such as Bin for web apps) or register them in the GAC. Just make sure to use them in your solution only.

There's no need for a full installation on the target machine, you can also use the "Minimal installation" option provided by the setup. It does not disturb any other dotConnect components.

How can I update dotConnect to a new version?

To update dotConnect to a new version, you need to reinstall it:

  • 1. Open Settings > Apps > Installed apps in Windows.
  • 2. Uninstall the current and any older versions of dotConnect, including Entity Developer and LinqConnect, if installed.
  • 3. Visit the Customer Portal and download the latest licensed version.
  • 4. Install the downloaded version and receive the latest features and improvements.
How can I completely remove all previous versions of a product?

1. Go to Settings > Apps > Installed apps and uninstall:

  • All dotConnect providers
  • Entity Developer
  • LinqConnect

2. Manually delete any leftover files from the following locations (if they exist):

GAC folders:

  • C:\Windows\assembly\GAC_MSIL
  • C:\Windows\Microsoft.NET\assembly\GAC_MSIL

Program files and extensions:

  • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Devart
  • C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Devart
  • C:\Program Files (x86)\Devart
  • C:\Program Files\Devart
  • C:\Program Files (x86)\Common Files\Devart
  • C:\Program Files\Common Files\Devart

Program data folders:

  • C:\ProgramData\Devart\dotConnect
  • C:\ProgramData\Devart\Entity Developer
  • C:\ProgramData\Devart\EntityDeveloper

Removing these ensures a clean system and prevents conflicts during future installations.

Wield the full firepower of dotConnect for Zoho CRM
Go with the advanced edition of dotConnect for Zoho CRM and stay at the top of your game from day one!