202208100229183_Add_Table_OCMF.cs 774 B

12345678910111213141516171819202122232425262728
  1. namespace EVCB_OCPP.Domain.MainDBContextMigrations
  2. {
  3. using System;
  4. using System.Data.Entity.Migrations;
  5. public partial class Add_Table_OCMF : DbMigration
  6. {
  7. public override void Up()
  8. {
  9. CreateTable(
  10. "dbo.OCMF",
  11. c => new
  12. {
  13. Id = c.Int(nullable: false, identity: true),
  14. TransactionId = c.Int(nullable: false),
  15. DataString = c.String(maxLength: 2048),
  16. PublicKey = c.String(maxLength: 256),
  17. })
  18. .PrimaryKey(t => t.Id);
  19. }
  20. public override void Down()
  21. {
  22. DropTable("dbo.OCMF");
  23. }
  24. }
  25. }