![]() |
VOOZH | about |
dotnet add package SyncData_dotNET --version 1.3.0
NuGet\Install-Package SyncData_dotNET -Version 1.3.0
<PackageReference Include="SyncData_dotNET" Version="1.3.0" />
<PackageVersion Include="SyncData_dotNET" Version="1.3.0" />Directory.Packages.props
<PackageReference Include="SyncData_dotNET" />Project file
paket add SyncData_dotNET --version 1.3.0
#r "nuget: SyncData_dotNET, 1.3.0"
#:package SyncData_dotNET@1.3.0
#addin nuget:?package=SyncData_dotNET&version=1.3.0Install as a Cake Addin
#tool nuget:?package=SyncData_dotNET&version=1.3.0Install as a Cake Tool
#DOCS SyncData is a framework for Bi-Directional Synchronization in .NET applications.
Supported platforms:
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);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.0 | 1,003 | 10/9/2020 |
| 1.2.1 | 861 | 12/21/2019 |
| 1.2.0 | 783 | 12/15/2019 |
| 1.1.9 | 791 | 7/13/2019 |
| 1.1.8 | 772 | 7/7/2019 |
| 1.1.7 | 821 | 7/6/2019 |
| 1.1.6 | 793 | 7/6/2019 |
| 1.1.5 | 769 | 7/6/2019 |
| 1.1.4 | 748 | 7/6/2019 |
| 1.1.3 | 756 | 7/6/2019 |
| 1.1.2 | 735 | 7/6/2019 |
| 1.1.1 | 763 | 7/6/2019 |
| 1.1.0 | 763 | 7/5/2019 |
| 1.0.0 | 771 | 6/26/2019 |
Awesome application SyncData utility.