EntityMigrationFramework 0.1.0-alpha
dotnet add package EntityMigrationFramework --version 0.1.0-alpha
NuGet\Install-Package EntityMigrationFramework -Version 0.1.0-alpha
<PackageReference Include="EntityMigrationFramework" Version="0.1.0-alpha" />
<PackageVersion Include="EntityMigrationFramework" Version="0.1.0-alpha" />
<PackageReference Include="EntityMigrationFramework" />
paket add EntityMigrationFramework --version 0.1.0-alpha
#r "nuget: EntityMigrationFramework, 0.1.0-alpha"
#:package EntityMigrationFramework@0.1.0-alpha
#addin nuget:?package=EntityMigrationFramework&version=0.1.0-alpha&prerelease
#tool nuget:?package=EntityMigrationFramework&version=0.1.0-alpha&prerelease
EntityMigrationFramework
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
Add the core package: ```bash dotnet add package EntityMigrationFramework ```
Create your first migration: ```csharp public class SampleMigration : IMigration<OldModel, NewModel> { public NewModel Migrate(OldModel src) ⇒ new() { // Transformation logic }; } ```
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:
- Open an issue to discuss changes
- Keep PRs focused and well-documented
- 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 | Versions 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. |
-
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 |