Down Methode geschreiben für DropClumn von 3 Spalten
This commit is contained in:
parent
91f1121736
commit
5f4794e42f
@ -23,5 +23,13 @@ namespace SZUAbsolventenverein.Module.EventRegistration.Migrations
|
|||||||
entityBuilder.AddDateTimeColumn("EventDate", false, new DateTime()); // DateTime for the event
|
entityBuilder.AddDateTimeColumn("EventDate", false, new DateTime()); // DateTime for the event
|
||||||
entityBuilder.AddStringColumn("Location", 100, false, true, ""); // Location of the event
|
entityBuilder.AddStringColumn("Location", 100, false, true, ""); // Location of the event
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
var entityBuilder = new EventEntityBuilder(migrationBuilder, ActiveDatabase);
|
||||||
|
entityBuilder.DropColumn("Description"); // RichTextEditor
|
||||||
|
entityBuilder.DropColumn("EventDate"); // DateTime
|
||||||
|
entityBuilder.DropColumn("Location"); // Location
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user