Movies included in database as well and handled in site
This commit is contained in:
21
Vidly/Migrations/201901201503276_AddingaFewMovies.cs
Normal file
21
Vidly/Migrations/201901201503276_AddingaFewMovies.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user