Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 91f4a1a Apr 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CodeFirstGeneratorTemplates VS 2019 Apr 7, 2019
CodeGeneratorTemplate Fix Jan 17, 2019
SqlGeneratorTemplate Fix Jan 17, 2019
.gitignore Initial commit Jan 13, 2019
CodeFirstGeneratorTemplates.sln Add files via upload Jan 13, 2019
LICENSE Update LICENSE Jan 13, 2019
README.md update readme Jan 17, 2019

README.md

Entity Framework Code First Migration SQL generator and C# scaffolder

A not very-well known, but very useful feature of Entity Framework Code First is the ability to add your custom sql generators that are used when you create sql scripts from your migrations and to add your custom code generators that are used when C# code is created from your migrations.

I have used custom generators in some of my projects as well, but since this is not a very well known and widely used feature, finding the corresponding documentation takes some time :) So I thought I would create a Visual Studio extension that has an item template for a custom sql generator and a custom C# code generator.

After downloading the extension from the marketplace, you have the option to add a "Custom migration code generator" or a "Custom migration sql generator" to the project:

The generator items add nice little classes with the required boilerplate and some comments to help you get started:

Contribution

Ideas are welcome; create an issue or submit a PR if you have something.

You can’t perform that action at this time.