BIT.Data.Sync.AspNetCore.Xpo
23.1.3.4-beta
dotnet add package BIT.Data.Sync.AspNetCore.Xpo --version 23.1.3.4-beta
NuGet\Install-Package BIT.Data.Sync.AspNetCore.Xpo -Version 23.1.3.4-beta
<PackageReference Include="BIT.Data.Sync.AspNetCore.Xpo" Version="23.1.3.4-beta" />
paket add BIT.Data.Sync.AspNetCore.Xpo --version 23.1.3.4-beta
#r "nuget: BIT.Data.Sync.AspNetCore.Xpo, 23.1.3.4-beta"
// Install BIT.Data.Sync.AspNetCore.Xpo as a Cake Addin #addin nuget:?package=BIT.Data.Sync.AspNetCore.Xpo&version=23.1.3.4-beta&prerelease // Install BIT.Data.Sync.AspNetCore.Xpo as a Cake Tool #tool nuget:?package=BIT.Data.Sync.AspNetCore.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)
- BIT.Data.Sync.Xpo (>= 23.1.3.4-beta)
- DevExpress.Xpo (>= 23.1.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
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 |
---|---|---|
23.1.3.4-beta | 58 | 7/11/2024 |
23.1.3.3-beta | 45 | 10/16/2024 |
23.1.3.2-beta | 54 | 6/11/2024 |
2.0.6-beta | 50 | 6/11/2024 |
2.0.5-beta | 55 | 6/11/2024 |
2.0.3-beta | 58 | 6/11/2024 |
2.0.2-beta | 46 | 6/11/2024 |
2.0.1-beta | 50 | 6/11/2024 |