Created
June 15, 2011 01:41
-
-
Save jakcharlton/1026327 to your computer and use it in GitHub Desktop.
Resharper File Template for FluentMigrations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TemplatesExport family="File Templates"> | |
<Template uid="188d3b0a-987e-48b4-b42a-2ebaa25b21fb" shortcut="" description="Fluent Migration" text="using FluentMigrator;

namespace $NAMESPACE$
{
 [Migration($MIGRATIONNUMBER$)]
 public class $CLASS$$MIGRATIONNUMBER$ : Migration
 {
 public override void Up()
 {
 $END$
 }

 public override void Down()
 {

 }
 }
}
" reformat="True" shortenQualifiedReferences="True"> | |
<Scopes> | |
<Scope type="Everywhere" /> | |
</Scopes> | |
<Categories /> | |
<Variables> | |
<Variable name="NAMESPACE" expression="fileDefaultNamespace()" initialRange="0" /> | |
<Variable name="MIGRATIONNUMBER" expression="getCurrentTime("yyyymmddhhss")" initialRange="0" /> | |
<Variable name="CLASS" expression="getFileNameWithoutExtension()" initialRange="0" /> | |
</Variables> | |
<CustomProperties> | |
<Property key="FileName" value="Migration" /> | |
<Property key="Extension" value="cs" /> | |
<Property key="ValidateFileName" value="False" /> | |
</CustomProperties> | |
</Template> | |
</TemplatesExport> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using FluentMigrations and Resharper - template to automatically timestamp your migration classes