Git Product home page Git Product logo

entityframework-multimigrate's Introduction

EntityFramework-MultiMigrate

EntityFramework migration tool and library that supports migrating multiple models

For details of how to use it see: http://codingmonster.co.uk/blog/1395/entity-framework-multi-migration

Purpose

Out of the box, Entityframework supports multiple models being persisted to the same database. However...

Multiple models cannot easily be integrated and treated by the consuming application as if it were a single model.

This project provides the necessary tooling to support developing a model class library with it's own set of migrations that are then merged with the migrations of a consuming class library.

What's included?

  • MultiMigrate.exe - a replacement to the Migrate.exe tool
  • CcAcca.EntityFramework.MultiMigrate.dll provides the class MultiMigrateDbToLastestVersion as a replacement to the database initializer MigrateDatabaseToLatestVersion

Background

Its usually desirable to develop highly decoupled models with an application layer that provides the necessary integration to the GUI.

However, there are times when its an advantage to develop a single unified model but to internally identify a kernel that is shared by multiple libraries.

This kernel is developed as a base class library that is inherited and extended by one or more concreate class libraries.

In such scenarios, typically migrations for the base class library end up having to be repeatedily scaffolded by each extending library. For simple libraries this might be ok.

This is not viable as complexity of the base library increases and custom migrations are required and/or migrations include data. Instead migrations should be created for the base class library and these merged into the migrations of the consuming library.

entityframework-multimigrate's People

Contributors

ccrowhurstram avatar christianacca avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.