BIT.Data.Sync.Xpo
23.1.3.4-beta
dotnet add package BIT.Data.Sync.Xpo --version 23.1.3.4-beta
NuGet\Install-Package BIT.Data.Sync.Xpo -Version 23.1.3.4-beta
<PackageReference Include="BIT.Data.Sync.Xpo" Version="23.1.3.4-beta" />
paket add BIT.Data.Sync.Xpo --version 23.1.3.4-beta
#r "nuget: BIT.Data.Sync.Xpo, 23.1.3.4-beta"
// Install BIT.Data.Sync.Xpo as a Cake Addin #addin nuget:?package=BIT.Data.Sync.Xpo&version=23.1.3.4-beta&prerelease // Install BIT.Data.Sync.Xpo as a Cake Tool #tool nuget:?package=BIT.Data.Sync.Xpo&version=23.1.3.4-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
- ObjectSpace provider https://docs.devexpress.com/eXpressAppFramework/DevExpress.ExpressApp.XafApplication.ObjectSpaceProvider
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 | Versions 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. |
-
net6.0
- BIT.Data.Sync (>= 2.0.1-beta)
- DevExpress.Xpo (>= 23.1.3)
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 | 64 | 7/11/2024 |
23.1.3.3-beta | 53 | 10/16/2024 |
23.1.3.2-beta | 65 | 6/11/2024 |
2.0.6-beta | 60 | 6/11/2024 |
2.0.5-beta | 62 | 6/11/2024 |
2.0.3-beta | 59 | 6/11/2024 |
2.0.2-beta | 55 | 6/11/2024 |
2.0.1-beta | 61 | 6/11/2024 |