Movies included in database as well and handled in site
This commit is contained in:
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user