SyncData_dotNET 1.1.7

SyncData is a framework for Bi-Directional Synchronization in .NET applications.

There is a newer version of this package available.
See the version list below for details.
Install-Package SyncData_dotNET -Version 1.1.7
dotnet add package SyncData_dotNET --version 1.1.7
<PackageReference Include="SyncData_dotNET" Version="1.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SyncData_dotNET --version 1.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

#DOCS
SyncData is a framework for Bi-Directional Synchronization in .NET applications.

Supported platforms:

  • .NET Framework 3.5, 4, 4.5, 4.6 & 4.7

Example:
class Program
{
private static readonly ClientSync Sync = ClientSync.GetClientSync();

    static void Main(string[] args)
    {
		// Tables involved in the sync process:
        var tables = new string[] { "anagrafica" };

        string server = "localhost";
        string database = "pwdmanager";
        string username = "root";
        string password = "toor";

		string clientConnectionString = Constants.FILEDB;
		string serverConnectionString = @"Data Source=" + server + "; Database=" + database + "; User ID=" + username + "; Password=" + password + ";";

        // Create 2 Sql Sync providers

        // Sqlite Client provider for a MySql <=> Sqlite sync
        SQLiteConnection clientProvider = new SQLiteConnection(clientConnectionString);

        // MySql Server provider, the master.
        MySqlConnection serverProvider = new MySqlConnection(serverConnectionString);

        // Sync orchestrator
        Sync.Synchronize(clientProvider, serverProvider, tables);
        String[] error = Sync.getError();
        if (error != null && error.Length > 0)
        {
            Console.WriteLine(error[0] + " " + error[1]);
        }

        // Write results
        Console.WriteLine("Result: " + Sync.getResult());
    }
}

#DOCS
SyncData is a framework for Bi-Directional Synchronization in .NET applications.

Supported platforms:

  • .NET Framework 3.5, 4, 4.5, 4.6 & 4.7

Example:
class Program
{
private static readonly ClientSync Sync = ClientSync.GetClientSync();

    static void Main(string[] args)
    {
		// Tables involved in the sync process:
        var tables = new string[] { "anagrafica" };

        string server = "localhost";
        string database = "pwdmanager";
        string username = "root";
        string password = "toor";

		string clientConnectionString = Constants.FILEDB;
		string serverConnectionString = @"Data Source=" + server + "; Database=" + database + "; User ID=" + username + "; Password=" + password + ";";

        // Create 2 Sql Sync providers

        // Sqlite Client provider for a MySql <=> Sqlite sync
        SQLiteConnection clientProvider = new SQLiteConnection(clientConnectionString);

        // MySql Server provider, the master.
        MySqlConnection serverProvider = new MySqlConnection(serverConnectionString);

        // Sync orchestrator
        Sync.Synchronize(clientProvider, serverProvider, tables);
        String[] error = Sync.getError();
        if (error != null && error.Length > 0)
        {
            Console.WriteLine(error[0] + " " + error[1]);
        }

        // Write results
        Console.WriteLine("Result: " + Sync.getResult());
    }
}

Release Notes

Awesome application SyncData utility.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.9 63 7/13/2019
1.1.8 59 7/7/2019
1.1.7 59 7/6/2019
1.1.6 59 7/6/2019
1.1.5 58 7/6/2019
1.1.4 58 7/6/2019
1.1.3 59 7/6/2019
1.1.2 58 7/6/2019
1.1.1 58 7/6/2019
1.1.0 57 7/5/2019
1.0.0 62 6/26/2019