Skip to content

Instantly share code, notes, and snippets.

@aaronlerch
Created January 17, 2012 15:41
Show Gist options
  • Save aaronlerch/1627118 to your computer and use it in GitHub Desktop.
Save aaronlerch/1627118 to your computer and use it in GitHub Desktop.
Simple Resharper live template for FluentMigrator migrations
<TemplatesExport family="Live Templates">
<Template uid="23818653-ac72-4057-9afc-35649cdfe0fc" shortcut="migration" description="FluentMigrator Migration" text="[Migration($VERSION$)]&#xD;&#xA;public class $MIGRATION_NAME$ : Migration&#xD;&#xA;{&#xD;&#xA; public override void Up()&#xD;&#xA; {&#xD;&#xA; $UP$&#xD;&#xA; }&#xD;&#xA;&#xD;&#xA; public override void Down()&#xD;&#xA; {&#xD;&#xA; $DOWN$&#xD;&#xA; }&#xD;&#xA;}" reformat="True" shortenQualifiedReferences="True">
<Context>
<CSharpContext context="Everywhere" minimumLanguageVersion="2.0" />
</Context>
<Categories />
<Variables>
<Variable name="VERSION" expression="getCurrentTime(&quot;yyyyMMddHHmmss&quot;)" initialRange="0" />
<Variable name="MIGRATION_NAME" expression="" initialRange="0" />
<Variable name="UP" expression="constant(&quot;throw new NotImplementedException();&quot;)" initialRange="0" />
<Variable name="DOWN" expression="constant(&quot;throw new NotImplementedException();&quot;)" initialRange="0" />
</Variables>
<CustomProperties />
</Template>
</TemplatesExport>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment