Rystem.RepositoryFramework.MigrationTools 6.0.7

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

// Install Rystem.RepositoryFramework.MigrationTools as a Cake Tool
#tool nuget:?package=Rystem.RepositoryFramework.MigrationTools&version=6.0.7

What is Rystem?

Migration Tools

You need to create a base model as a bridge for your migration. After that you can use the two repositories with repository pattern to help yourself with the migration from a old storage to a brand new storage.

Sample with in memory integration (From UnitTest)

For instance you can create two repositories, one as source and one as target. In the example we use an easy test integration with two in memory integrations.

.AddRepository<SuperMigrationUser, string>(builder =>
{
    builder.WithInMemory(builder =>
    {
        builder
            .PopulateWithRandomData(NumberOfItems);
    }, "source");
})
.AddRepository<SuperMigrationUser, string>(builder =>
{
    builder.WithInMemory(builder =>
    {
        builder
            .PopulateWithRandomData(NumberOfItems);
    }, "target");
})
    .AddMigrationManager<SuperMigrationUser, string>(settings =>
    {
        settings.SourceFactoryName = "source";
        settings.DestinationFactoryName = "target";
        settings.NumberOfConcurrentInserts = 10;
    })

Now you may use the interface in DI

IMigrationManager<SuperMigrationUser, string> migrationService

and let the sorcery happens

var migrationResult = await _migrationService.MigrateAsync(x => x.Id!, true);

Parameters

Name Description
Expression<Func<T, TKey>> navigationKey Explain how to create the TKey from the TValue
bool checkIfExists = false check existence on target before download from source
bool deleteEverythingBeforeStart = false delete all items before starting the migration from target
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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
6.0.19 33 6/14/2024
6.0.18 34 6/14/2024
6.0.17 33 6/14/2024
6.0.16 59 6/10/2024
6.0.15 65 6/9/2024
6.0.14 64 5/24/2024
6.0.13 61 5/23/2024
6.0.12 49 5/23/2024
6.0.11 75 5/20/2024
6.0.9 81 5/20/2024
6.0.7 80 5/18/2024
6.0.6 62 5/10/2024
6.0.5 64 5/10/2024
6.0.4 116 4/3/2024
6.0.3 127 3/25/2024
6.0.2 146 3/11/2024
6.0.0 393 11/21/2023
6.0.0-rc.6 84 10/25/2023
6.0.0-rc.5 63 10/25/2023
6.0.0-rc.4 56 10/23/2023
6.0.0-rc.3 52 10/19/2023
6.0.0-rc.2 57 10/18/2023
6.0.0-rc.1 54 10/16/2023
5.0.20 375 9/25/2023
5.0.19 374 9/10/2023
5.0.18 378 9/6/2023
5.0.17 363 9/6/2023
5.0.16 372 9/5/2023
5.0.15 370 9/5/2023
5.0.14 326 9/5/2023
5.0.13 372 9/1/2023
5.0.12 363 8/31/2023
5.0.11 318 8/30/2023
5.0.10 377 8/29/2023
5.0.9 401 8/24/2023
5.0.8 406 8/24/2023
5.0.7 388 8/23/2023
5.0.6 407 8/21/2023
5.0.5 400 8/21/2023
5.0.4 406 8/16/2023
5.0.3 490 8/2/2023
5.0.2 514 8/2/2023
5.0.1 498 8/1/2023
5.0.0 469 7/31/2023
4.1.26 500 7/20/2023
4.1.25 477 7/16/2023
4.1.24 482 6/13/2023
4.1.23 419 6/13/2023
4.1.22 480 5/30/2023
4.1.21 482 5/20/2023
4.1.20 315,513 4/19/2023
4.1.19 95,161 3/20/2023
4.1.18 546 3/20/2023
4.1.17 558 3/16/2023
4.1.16 557 3/16/2023
4.1.15 532 3/15/2023
4.1.14 1,085 3/9/2023
4.1.13 543 3/7/2023
4.1.12 569 2/10/2023
4.1.11 610 1/26/2023
4.1.10 635 1/22/2023
4.1.9 639 1/20/2023
4.1.8 658 1/18/2023
4.1.7 610 1/18/2023
4.1.6 650 1/17/2023
4.1.1 601 1/4/2023
4.1.0 647 1/1/2023
3.1.5 650 12/21/2022
3.1.3 625 12/12/2022
3.1.2 612 12/7/2022
3.1.1 634 12/7/2022
3.1.0 662 12/2/2022
3.0.29 682 12/1/2022
3.0.28 667 12/1/2022
3.0.27 681 11/23/2022
3.0.25 693 11/23/2022
3.0.24 662 11/18/2022
3.0.23 671 11/18/2022
3.0.22 683 11/15/2022
3.0.21 682 11/14/2022
3.0.20 718 11/13/2022
3.0.19 680 11/2/2022
3.0.18 701 11/2/2022
3.0.17 719 10/29/2022
3.0.16 737 10/29/2022
3.0.15 674 10/29/2022
3.0.14 712 10/24/2022
3.0.13 685 10/24/2022
3.0.12 744 10/17/2022
3.0.11 757 10/10/2022
3.0.10 745 10/6/2022
3.0.9 737 10/6/2022
3.0.8 742 10/6/2022
3.0.7 735 10/6/2022
3.0.6 747 10/5/2022
3.0.5 746 10/5/2022
3.0.4 745 10/5/2022
3.0.3 732 10/3/2022
3.0.2 731 9/30/2022
3.0.1 759 9/29/2022
2.0.17 769 9/29/2022
2.0.16 748 9/27/2022
2.0.15 779 9/27/2022
2.0.14 773 9/26/2022
2.0.13 765 9/26/2022
2.0.12 792 9/26/2022
2.0.11 785 9/25/2022
2.0.10 781 9/25/2022
2.0.9 803 9/22/2022
2.0.8 762 9/22/2022
2.0.6 762 9/20/2022
2.0.5 763 9/20/2022
2.0.4 749 9/20/2022
2.0.2 770 9/20/2022
2.0.1 843 9/13/2022
2.0.0 785 8/19/2022
1.1.24 813 7/30/2022
1.1.23 789 7/29/2022
1.1.22 786 7/29/2022
1.1.21 795 7/29/2022
1.1.20 761 7/29/2022
1.1.19 760 7/27/2022
1.1.17 811 7/27/2022
1.1.16 799 7/26/2022
1.1.15 777 7/25/2022
1.1.14 774 7/25/2022
1.1.13 810 7/22/2022
1.1.12 776 7/19/2022
1.1.11 774 7/19/2022
1.1.10 779 7/19/2022
1.1.9 799 7/19/2022
1.1.8 819 7/18/2022
1.1.7 772 7/18/2022
1.1.6 797 7/18/2022
1.1.5 817 7/17/2022
1.1.4 814 7/17/2022
1.1.3 883 7/17/2022
1.1.2 784 7/17/2022
1.1.0 810 7/17/2022
1.0.2 795 7/15/2022
1.0.1 818 7/15/2022
1.0.0 806 7/8/2022
0.10.7 814 7/7/2022
0.10.2 808 7/2/2022
0.10.1 822 7/1/2022
0.10.0 766 7/1/2022
0.9.10 796 6/20/2022
0.9.9 766 6/11/2022
0.9.7 785 6/9/2022
0.9.6 805 6/5/2022
0.9.5 780 6/3/2022
0.9.4 768 6/3/2022
0.9.3 766 6/3/2022