GithubHelp home page GithubHelp logo

zendever / fluentmigrator-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ritterim/fluentmigrator-generator

0.0 2.0 0.0 16 KB

A simple PowerShell script to generate database migrations from the package manager console in Visual Studio.

License: MIT License

PowerShell 96.08% C# 3.38% Batchfile 0.54%

fluentmigrator-generator's Introduction

FluentMigrator.Generator

FluentMigrator is a SQL migration framework designed to help version an application's database. This package allows a developer to quickly create a new migration from within Visual Studio's Package Manager console.

A few notable features:

  • Timestamp generation
  • Migration file named correctly with timestamp
  • Migration added to Migrations folder under current active project

It couldn't be easier!

Getting Started

PM > Install-Package FluentMigrator.Generator

Once installed, open the Package Manager Console in Visual Studio. To get there, go to View > Other Windows > Package Manager Console. Remember to select the active project via the Default Project dropdown.

In the new window, type Add-FluentMigration followed by the name of your migration.

Add-FluentMigration InitialMigration

You should see the following structure in the Default Project project.

ConsoleApplication1
|- /Migrations
    |- 20160219141436_InitialMigration.cs

The migration file contents should look like the following.

using FluentMigrator;

namespace ConsoleApplication1.Migrations
{
    [Migration(20160219141436)]
    public class InitialMigration : Migration
    {
        public override void Up()
        {
        }

        public override void Down()
        {
        }
    }
}

Fill in the migration appropriately.

fluentmigrator-generator's People

Contributors

astrohart avatar billbogaiv avatar jrusbatch avatar kendaleiv avatar khalidabuhakmeh avatar ltvan avatar vipentti avatar

Watchers

 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.