Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Generator / Generators / Model / Templates / Migration.cs
blob28335cb5b69bd6074356bce6c76dcf520350a353
1 using System;
2 using Migrator;
4 namespace <%= MigrationNamespace %>
6 /// <summary>
7 /// Add <%= HumanName %> table to the database
8 /// </summary>
9 [Migration(<%= Version %>)]
10 public class Add<%= ClassName %>Table : Migration
12 public override void Up()
14 Database.AddTable("<%= ClassName %>",
15 new Column("Id", typeof(int), ColumnProperties.PrimaryKeyWithIdentity)<% for prop in Properties: %>,
16 new Column("<%= prop %>", typeof(string), 50)<% end %>
21 public override void Down()
23 Database.RemoveTable("<%= ClassName %>");