BIT.Data.Sync.Xpo 2.0.5-beta

This is a prerelease version of BIT.Data.Sync.Xpo.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package BIT.Data.Sync.Xpo --version 2.0.5-beta                
NuGet\Install-Package BIT.Data.Sync.Xpo -Version 2.0.5-beta                
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="BIT.Data.Sync.Xpo" Version="2.0.5-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BIT.Data.Sync.Xpo --version 2.0.5-beta                
#r "nuget: BIT.Data.Sync.Xpo, 2.0.5-beta"                
#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 BIT.Data.Sync.Xpo as a Cake Addin
#addin nuget:?package=BIT.Data.Sync.Xpo&version=2.0.5-beta&prerelease

// Install BIT.Data.Sync.Xpo as a Cake Tool
#tool nuget:?package=BIT.Data.Sync.Xpo&version=2.0.5-beta&prerelease                

BIT.Data.Sync.Xpo

This repository contains the main project BIT.Data.Sync.Xpo, which is a powerful tool for synchronizing data using XPO. The other projects in this repository are examples and extensions that demonstrate the usage and extend the functionality of the main project.

Getting Started

To get started with BIT.Data.Sync.Xpo, clone this repository to your local machine.

XAF integration

MAUI,Desktop,Console and others

    #region SyncFramework

        static IDataStore? syncDataStoreProvider;
        static ThreadSafeDataLayer Dal;
        static void InitSyncFramework()
        {
            SyncDataStore.Register();
            string ClientNodeId = "MAUI";// HACK this should be a unique ID, you can add the device information to create a unique ID 
            string ServerNodeId = "DemoServer";
            string ServerUri = "https://fb66-89-117-53-109.ngrok-free.app/";

            string dbPathData = Path.Combine(FileSystem.AppDataDirectory, "Data.db3");
            string dbPathDelta = Path.Combine(FileSystem.AppDataDirectory, "Delta.db3");

            string ExcludedTypes = string.Empty;

            var Cnx = SyncDataStore.GetConnectionString(
                SQLiteConnectionProvider.GetConnectionString(dbPathData),
                SQLiteConnectionProvider.GetConnectionString(dbPathDelta),
                ClientNodeId,
                ExcludedTypes, ServerNodeId, ServerUri, true);


            var objectsToDisposeOnDisconnect = new IDisposable[] { };


            syncDataStoreProvider = SyncDataStore.CreateProviderFromString(Cnx, AutoCreateOption.DatabaseAndSchema, out objectsToDisposeOnDisconnect);

            DatabaseHelper.UpdateSchema(syncDataStoreProvider, (new List<Assembly>() { typeof(Customer).Assembly }).ToArray(), true);

            

            Dal = new ThreadSafeDataLayer(syncDataStoreProvider);
        }
        public static UnitOfWork CreateUnitOfWok()
        {
            return new UnitOfWork(Dal);
        }

        #endregion

XAF

Open the solution in Visual Studio and set BIT.Data.Sync.Xpo as the startup project.

Examples and Extensions

This repository also contains several examples and extensions that demonstrate the usage and extend the functionality of BIT.Data.Sync.Xpo.

  • Example1: This project demonstrates...
  • Example2: This project demonstrates...
  • Extension1: This extension adds...
  • Extension2: This extension adds...

Running the Tests

This solution includes integrated unit tests. To run these tests, use the Test Explorer in Visual Studio.

Building and Running

To build and run the BI``T.Data.Sync.Xpo project, use the Build and Run commands in Visual Studio. The output will be displayed in the Output pane.

Contributing

We welcome contributions to this project. Please see our Contributing Guide for more information.

License

This project is licensed under the MIT License.

Contact

If you have any questions or issues, please open an issue in this repository.

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 (2)

Showing the top 2 NuGet packages that depend on BIT.Data.Sync.Xpo:

Package Downloads
BIT.Data.Sync.AspNetCore.Xpo

Package Description

BIT.Data.Sync.Xaf

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
23.1.3.4-beta 59 7/11/2024
23.1.3.3-beta 46 10/16/2024
23.1.3.2-beta 60 6/11/2024
2.0.6-beta 55 6/11/2024
2.0.5-beta 55 6/11/2024
2.0.3-beta 52 6/11/2024
2.0.2-beta 50 6/11/2024
2.0.1-beta 56 6/11/2024