Movies included in database as well and handled in site

This commit is contained in:
2019-01-21 20:52:22 +01:00
parent 19fc2475fa
commit f5a597fcdb
33 changed files with 1418 additions and 59 deletions

View File

@ -0,0 +1,20 @@
namespace Vidly.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddValuesforMoviesAndGenres : DbMigration
{
public override void Up()
{
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (1,'Comedy')");
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (2, 'Action')");
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (3, 'Family')");
Sql("INSERT INTO MovieGenres (Id, Name) VALUES (4, 'Romance')");
}
public override void Down()
{
}
}
}