BookManager.Web.Migrations.Initialize.Down C# (CSharp) Method

Down() public method

public Down ( ) : void
return void
        public override void Down()
        {
            DropForeignKey("dbo.UserRoles", "RoleId", "dbo.Roles");
            DropForeignKey("dbo.UserRoles", "UserId", "dbo.Users");
            DropForeignKey("dbo.BookGenres", "GenreId", "dbo.Genres");
            DropForeignKey("dbo.BookGenres", "BookId", "dbo.Books");
            DropIndex("dbo.UserRoles", new[] { "RoleId" });
            DropIndex("dbo.UserRoles", new[] { "UserId" });
            DropIndex("dbo.BookGenres", new[] { "GenreId" });
            DropIndex("dbo.BookGenres", new[] { "BookId" });
            DropTable("dbo.UserRoles");
            DropTable("dbo.BookGenres");
            DropTable("dbo.Users");
            DropTable("dbo.Roles");
            DropTable("dbo.Genres");
            DropTable("dbo.Books");
        }
Initialize