SyncTransform 1.0.0

dotnet add package SyncTransform --version 1.0.0                
NuGet\Install-Package SyncTransform -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SyncTransform" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SyncTransform --version 1.0.0                
#r "nuget: SyncTransform, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SyncTransform as a Cake Addin
#addin nuget:?package=SyncTransform&version=1.0.0

// Install SyncTransform as a Cake Tool
#tool nuget:?package=SyncTransform&version=1.0.0                

SyncTransform

A C# Library that helps to sync data that may require transformation

Project Goals

  1. Unidirectional and Bidirectional Sync

    1. Utilize key maps to keep track of rows that have sync'd. This will also deal with a row having a different key on one system than another
    2. Ability to support "Sameness" overloading so rows that have the same data can be marked as sync'd
  2. Transform Capability

    1. Ability to morph a table row into a different table
    2. Multiple tables to Multiple Tables?
  3. Scheduling?

  4. Real-time?

  5. Auto Sync Based on Metadata:

    1. The key for the source table
    2. The key for the destination table
    3. Field Mappings & Transformations

    Save the keys automatically

    Work kind of like a merge join in SQL

Example Syntax:

// Unidirectional Sync
Sync
	.SetSourceConnection(ConnStr)
	.SetDestConnection(ConnStr)
	.UseTransaction()
	.UnidirectionalSyncTo()
	.Map<TableSourceObject, TableDestinationObject>(transform)
	.Schedule(interval, reenterent)
	.Run();

// Bidirectional Sync
Sync
	.SetConnection(ConnStr)
	.Map<TableObject>("TableName")
	.BidirectionalSyncTo()
	.SetConnection(ConnStr)
	.Map<TableObject>("TableName")
	.Transform<TableObject, TableObject>(TransformFunc)
	.Schedule(interval, reenterent)
	.Run();

AppSettings.json Example: { "ConnectionStrings": { "Test1": { "ConnectionString": "Server=(local);Integrated Security=SSPI;Database=Test", "ProviderName": "System.Data.SqlClient" }, "KeyStore": { "ConnectionString": "Server=(local);Integrated Security=SSPI;Database=Test", "ProviderName": "System.Data.SqlClient" } } }

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 255 12/27/2021