EntityMigrationFramework 0.1.0-alpha

This is a prerelease version of EntityMigrationFramework.
dotnet add package EntityMigrationFramework --version 0.1.0-alpha
                    
NuGet\Install-Package EntityMigrationFramework -Version 0.1.0-alpha
                    
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="EntityMigrationFramework" Version="0.1.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EntityMigrationFramework" Version="0.1.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="EntityMigrationFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EntityMigrationFramework --version 0.1.0-alpha
                    
#r "nuget: EntityMigrationFramework, 0.1.0-alpha"
                    
#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.
#:package EntityMigrationFramework@0.1.0-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EntityMigrationFramework&version=0.1.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EntityMigrationFramework&version=0.1.0-alpha&prerelease
                    
Install as a Cake Tool

EntityMigrationFramework

Apache 2.0 License Project Status: WIP .NET Version

A type-safe data migration framework for .NET applications
Early-stage solution for model versioning and evolution with compile-time validated transformations


🚧 Project Status: Early Alpha 🚧

This project is currently in active early development and should be considered experimental. Key notes:

🔥 Not production-ready
🔨 API surface will change
📖 Documentation is incomplete
Performance not optimized

Proceed with caution - ideal for experimentation and feedback, not production systems.


📚 Documentation

Explore our growing documentation at:
https://mohammadayaad.github.io/EntityMigrationFramework

Current documentation covers:

  • Basic concepts
  • Core API reference
  • Example application walkthrough

✨ Features

```csharp // Type-safe migration implementation public class UserMigration : IMigration<UserV1, UserV2> { public UserV2 Migrate(UserV1 src) ⇒ new() { // Compile-time validated transformation FullName = $"{src.FirstName} {src.LastName}" }; } ```

  • Automatic migration path resolution
  • Strong type validation
  • Customizable registry system
  • Version chain validation

🚀 Getting Started

  1. Add the core package: ```bash dotnet add package EntityMigrationFramework ```

  2. Create your first migration: ```csharp public class SampleMigration : IMigration<OldModel, NewModel> { public NewModel Migrate(OldModel src) ⇒ new() { // Transformation logic }; } ```

  3. Configure the manager: ```csharp var manager = new MigrationBuilder<BaseModel>() .AddMigration<SampleMigration, OldModel, NewModel>() .Prepare() .UseDefaultRegistry() .Build(); ```


🔍 Example Application

Explore the reference implementation in:
/src/EntityMigrationExampleApp

Demonstrates:

  • Multi-step model evolution
  • Direct and indirect migrations
  • JSON serialization integration

🛠️ Contributing

This project urgently needs:

  • API surface refinement
  • Documentation improvements
  • Test coverage
  • Performance optimizations

While formal guidelines are being developed, please:

  1. Open an issue to discuss changes
  2. Keep PRs focused and well-documented
  3. Follow existing code patterns

📜 License

Licensed under Apache 2.0 - full text in LICENSE:

```text Copyright 2024 Mohammad Ayaad

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```


👨💻 Author

Mohammad Ayaad
GitHub Profile
Project Discussions

"Constructive feedback and brave testers wanted!"

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

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
0.1.0-alpha 130 5/19/2025