Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. namespace Vidly.Migrations
  2. {
  3.     using System;
  4.     using System.Data.Entity.Migrations;
  5.    
  6.     public partial class PopulateMembershipTypes : DbMigration
  7.     {
  8.         public override void Up()
  9.         {
  10.             Sql("INSERT INTO MembershipTypes (Id, SignUpFee, DurationInMonths, DiscountRate) VALUES (1, 0, 0, 0)");
  11.             Sql("INSERT INTO MembershipTypes (Id, SignUpFee, DurationInMonths, DiscountRate) VALUES (2, 30, 1, 10)");
  12.             Sql("INSERT INTO MembershipTypes (Id, SignUpFee, DurationInMonths, DiscountRate) VALUES (3, 90, 3, 15)");
  13.             Sql("INSERT INTO MembershipTypes (Id, SignUpFee, DurationInMonths, DiscountRate) VALUES (4, 300, 12, 20)");
  14.         }
  15.        
  16.         public override void Down()
  17.         {
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement