Rystem.RepositoryFramework.MigrationTools 9.0.4

dotnet add package Rystem.RepositoryFramework.MigrationTools --version 9.0.4                
NuGet\Install-Package Rystem.RepositoryFramework.MigrationTools -Version 9.0.4                
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="9.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rystem.RepositoryFramework.MigrationTools --version 9.0.4                
#r "nuget: Rystem.RepositoryFramework.MigrationTools, 9.0.4"                
#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=9.0.4

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

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 net9.0 is compatible. 
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
9.0.4 79,479 12/23/2024
9.0.3 82 12/22/2024
9.0.2 10,633 12/21/2024
9.0.1 1,122 12/21/2024
9.0.0 172,909 11/16/2024
9.0.0-rc.1 87 10/18/2024
6.2.0 218,980 10/9/2024
6.1.1 103 10/9/2024
6.1.0 47,856 9/29/2024
6.0.24 118 9/11/2024
6.0.23 116 7/18/2024
6.0.21 125 6/18/2024
6.0.20 113 6/16/2024
6.0.19 112 6/14/2024
6.0.18 104 6/14/2024
6.0.17 106 6/14/2024
6.0.16 106 6/10/2024
6.0.15 111 6/9/2024
6.0.14 108 5/24/2024
6.0.13 102 5/23/2024
6.0.12 87 5/23/2024
6.0.11 115 5/20/2024
6.0.9 117 5/20/2024
6.0.7 115 5/18/2024
6.0.6 102 5/10/2024
6.0.5 100 5/10/2024
6.0.4 150 4/3/2024
6.0.3 165 3/25/2024
6.0.2 180 3/11/2024
6.0.0 427 11/21/2023
6.0.0-rc.6 103 10/25/2023
6.0.0-rc.5 82 10/25/2023
6.0.0-rc.4 76 10/23/2023
6.0.0-rc.3 69 10/19/2023
6.0.0-rc.2 77 10/18/2023
6.0.0-rc.1 74 10/16/2023
5.0.20 406 9/25/2023
5.0.19 410 9/10/2023
5.0.18 412 9/6/2023
5.0.17 399 9/6/2023
5.0.16 406 9/5/2023
5.0.15 408 9/5/2023
5.0.14 356 9/5/2023
5.0.13 410 9/1/2023
5.0.12 394 8/31/2023
5.0.11 352 8/30/2023
5.0.10 409 8/29/2023
5.0.9 432 8/24/2023
5.0.8 436 8/24/2023
5.0.7 421 8/23/2023
5.0.6 440 8/21/2023
5.0.5 434 8/21/2023
5.0.4 439 8/16/2023
5.0.3 520 8/2/2023
5.0.2 552 8/2/2023
5.0.1 528 8/1/2023
5.0.0 507 7/31/2023
4.1.26 533 7/20/2023
4.1.25 509 7/16/2023
4.1.24 511 6/13/2023
4.1.23 449 6/13/2023
4.1.22 508 5/30/2023
4.1.21 514 5/20/2023
4.1.20 315,547 4/19/2023
4.1.19 95,193 3/20/2023
4.1.18 576 3/20/2023
4.1.17 590 3/16/2023
4.1.16 591 3/16/2023
4.1.15 566 3/15/2023
4.1.14 1,118 3/9/2023
4.1.13 572 3/7/2023
4.1.12 600 2/10/2023
4.1.11 639 1/26/2023
4.1.10 665 1/22/2023
4.1.9 680 1/20/2023
4.1.8 687 1/18/2023
4.1.7 638 1/18/2023
4.1.6 684 1/17/2023
4.1.1 630 1/4/2023
4.1.0 675 1/1/2023
3.1.5 682 12/21/2022
3.1.3 654 12/12/2022
3.1.2 647 12/7/2022
3.1.1 665 12/7/2022
3.1.0 697 12/2/2022
3.0.29 716 12/1/2022
3.0.28 701 12/1/2022
3.0.27 713 11/23/2022
3.0.25 728 11/23/2022
3.0.24 697 11/18/2022
3.0.23 710 11/18/2022
3.0.22 713 11/15/2022
3.0.21 712 11/14/2022
3.0.20 752 11/13/2022
3.0.19 714 11/2/2022
3.0.18 736 11/2/2022
3.0.17 755 10/29/2022
3.0.16 774 10/29/2022
3.0.15 711 10/29/2022
3.0.14 745 10/24/2022
3.0.13 717 10/24/2022
3.0.12 778 10/17/2022
3.0.11 790 10/10/2022
3.0.10 780 10/6/2022
3.0.9 767 10/6/2022
3.0.8 774 10/6/2022
3.0.7 768 10/6/2022
3.0.6 779 10/5/2022
3.0.5 779 10/5/2022
3.0.4 779 10/5/2022
3.0.3 767 10/3/2022
3.0.2 764 9/30/2022
3.0.1 795 9/29/2022
2.0.17 807 9/29/2022
2.0.16 786 9/27/2022
2.0.15 815 9/27/2022
2.0.14 806 9/26/2022
2.0.13 798 9/26/2022
2.0.12 827 9/26/2022
2.0.11 835 9/25/2022
2.0.10 813 9/25/2022
2.0.9 835 9/22/2022
2.0.8 795 9/22/2022
2.0.6 796 9/20/2022
2.0.5 797 9/20/2022
2.0.4 786 9/20/2022
2.0.2 808 9/20/2022
2.0.1 885 9/13/2022
2.0.0 818 8/19/2022
1.1.24 847 7/30/2022
1.1.23 823 7/29/2022
1.1.22 818 7/29/2022
1.1.21 827 7/29/2022
1.1.20 792 7/29/2022
1.1.19 799 7/27/2022
1.1.17 847 7/27/2022
1.1.16 831 7/26/2022
1.1.15 816 7/25/2022
1.1.14 812 7/25/2022
1.1.13 846 7/22/2022
1.1.12 809 7/19/2022
1.1.11 824 7/19/2022
1.1.10 813 7/19/2022
1.1.9 832 7/19/2022
1.1.8 853 7/18/2022
1.1.7 806 7/18/2022
1.1.6 831 7/18/2022
1.1.5 869 7/17/2022
1.1.4 847 7/17/2022
1.1.3 920 7/17/2022
1.1.2 814 7/17/2022
1.1.0 843 7/17/2022
1.0.2 829 7/15/2022
1.0.1 852 7/15/2022
1.0.0 840 7/8/2022
0.10.7 846 7/7/2022
0.10.2 843 7/2/2022
0.10.1 858 7/1/2022
0.10.0 800 7/1/2022
0.9.10 830 6/20/2022
0.9.9 803 6/11/2022
0.9.7 821 6/9/2022
0.9.6 843 6/5/2022
0.9.5 815 6/3/2022
0.9.4 801 6/3/2022
0.9.3 799 6/3/2022