SHARE
TWEET

Untitled

a guest Feb 14th, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top