SyncData_dotNET 1.1.9

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

Install-Package SyncData_dotNET -Version 1.1.9
dotnet add package SyncData_dotNET --version 1.1.9
<PackageReference Include="SyncData_dotNET" Version="1.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SyncData_dotNET --version 1.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

		// Launch the sync process
        var result = await Sync.Synchronize(clientProvider, serverProvider, tables);

        // Write results
		Console.WriteLine("Total changes downloaded: " + result.TotalChangesDownloaded);
		Console.WriteLine("Total changes uploaded: " + result.TotalChangesUploaded);
		Console.WriteLine("Total conflicts: " + result.TotalSyncConflicts);
		Console.WriteLine("Total errors: " + result.TotalSyncErrors);
		Console.WriteLine("Total StartTime: " + result.StartTime);
		Console.WriteLine("Total CompleteTime: " + result.CompleteTime);
		Console.WriteLine("Total duration: " + result.CompleteTime);
		Console.WriteLine("Total message: " + result.Message);
    }
}

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

		// Launch the sync process
        var result = await Sync.Synchronize(clientProvider, serverProvider, tables);

        // Write results
		Console.WriteLine("Total changes downloaded: " + result.TotalChangesDownloaded);
		Console.WriteLine("Total changes uploaded: " + result.TotalChangesUploaded);
		Console.WriteLine("Total conflicts: " + result.TotalSyncConflicts);
		Console.WriteLine("Total errors: " + result.TotalSyncErrors);
		Console.WriteLine("Total StartTime: " + result.StartTime);
		Console.WriteLine("Total CompleteTime: " + result.CompleteTime);
		Console.WriteLine("Total duration: " + result.CompleteTime);
		Console.WriteLine("Total message: " + result.Message);
    }
}

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 60 7/13/2019
1.1.8 56 7/7/2019
1.1.7 56 7/6/2019
1.1.6 56 7/6/2019
1.1.5 55 7/6/2019
1.1.4 55 7/6/2019
1.1.3 56 7/6/2019
1.1.2 55 7/6/2019
1.1.1 55 7/6/2019
1.1.0 54 7/5/2019
1.0.0 59 6/26/2019