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,21 @@
namespace Vidly.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddingaFewMovies : DbMigration
{
public override void Up()
{
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Hangover','1985-06-01','2015-06-05',3,1)");
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Die Hard','1988-11-15','2015-06-05',3,2)");
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'The Terminator','1975-08-15','2015-06-05',7,2)");
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Toy Story','1995-02-07','2015-06-05',2,3)");
Sql("INSERT INTO Movies ( Name,ReleaseDate,DateAdded,NumberInStock,MovieGenreId) VALUES ( 'Titanic','1998-12-01','2015-06-05',8,4)");
}
public override void Down()
{
}
}
}