Skip to content

Commit c03ddae

Browse files
committed
update markdown image to Learn format to include border by default.
1 parent 3d43103 commit c03ddae

File tree

8 files changed

+29
-28
lines changed

8 files changed

+29
-28
lines changed

aspnetcore/tutorials/razor-pages/da1.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ uid: tutorials/razor-pages/da1
1414

1515
The scaffolded movie app is a good start, but the presentation isn't ideal. **ReleaseDate** should be two words, **Release Date**.
1616

17-
![Movie application open in Chrome](~/tutorials/razor-pages/sql/media/seed-data-in-app.png)
17+
:::image type="content" source="~/tutorials/razor-pages/sql/media/seed-data-in-app.png" alt-text="Movie application open in Chrome.":::
18+
1819

1920
## Update the model
2021

@@ -32,7 +33,7 @@ In the previous code:
3233

3334
Browse to *Pages/Movies* and hover over an **Edit** link to see the target URL.
3435

35-
![Browser window with mouse over the Edit link and a link Url of https://localhost:1234/Movies/Edit/5 is shown](~/tutorials/razor-pages/da1/media/edit-movie.png)
36+
:::image type="content" source="~/tutorials/razor-pages/da1/media/edit-movie.png" alt-text="Browser window with mouse over the Edit link and a link Url of https://localhost:1234/Movies/Edit/5 is shown.":::
3637

3738
The **Edit**, **Details**, and **Delete** links are generated by the [Anchor Tag Helper](xref:mvc/views/tag-helpers/builtin-th/anchor-tag-helper) in the `Pages/Movies/Index.cshtml` file.
3839

aspnetcore/tutorials/razor-pages/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ This series includes the following tutorials:
3030

3131
At the end, you'll have an app that can display and manage a database of movies.
3232

33-
![Sample page of sample app](~/tutorials/razor-pages/search/media/search-string-ghost.png)
33+
:::image type="content" source="~/tutorials/razor-pages/search/media/search-string-ghost.png" alt-text="Sample page of sample app.":::
3434

35-
![Sample edit validation of sample app](~/tutorials/razor-pages/validation/media/validation-errors.png)
35+
:::image type="content" source="~/tutorials/razor-pages/validation/media/validation-errors.png" alt-text="Sample edit validation of sample app.":::

aspnetcore/tutorials/razor-pages/model.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ In this section, you scaffold the movie model. The scaffolding tool generates pa
8282

8383
1. Right-click on the *Pages/Movies* folder > **Add** > **New Scaffolded Item**.
8484

85-
![New Scaffolded Item](~/tutorials/razor-pages/model/media/new-scaffolded-item-vs2026.png)
85+
:::image type="content" source="~/tutorials/razor-pages/model/media/new-scaffolded-item-vs2026.png" alt-text="New Scaffolded Item.":::
8686

8787
1. In the **Add New Scaffold** dialog, select **Razor Pages using Entity Framework (CRUD)** > **Add**.
8888

89-
![Add Scaffold](~/tutorials/razor-pages/model/media/add-scaffold-vs2026.png)
89+
:::image type="content" source="~/tutorials/razor-pages/model/media/add-scaffold-vs2026.png" alt-text="Add Scaffold.":::
9090

9191
1. Complete the **Add Razor Pages using Entity Framework (CRUD)** dialog:
9292
1. In the **Model class** drop down, select **Movie (RazorPagesMovie.Models)**.
@@ -95,7 +95,7 @@ In this section, you scaffold the movie model. The scaffolding tool generates pa
9595
1. In the **Database provider** drop down, select **SQL Server**.
9696
1. Select **Add**.
9797

98-
![Add Razor Pages](~/tutorials/razor-pages/model/media/add-razor-pages-vs2026.png)
98+
:::image type="content" source="~/tutorials/razor-pages/model/media/add-razor-pages-vs2026.png" alt-text="Add Razor Pages.":::
9999

100100
The `appsettings.json` file is updated with the connection string used to connect to a local database.
101101

@@ -169,7 +169,7 @@ In this section, use the **Package Manager Console** (PMC) window to:
169169

170170
* From the **Tools** menu, select **NuGet Package Manager** > **Package Manager Console**.
171171

172-
![PMC menu](~/tutorials/razor-pages/model/media/package-manager-console-vs2026.png)
172+
:::image type="content" source="~/tutorials/razor-pages/model/media/package-manager-console-vs2026.png" alt-text="PMC menu.":::
173173

174174
* In the PMC, enter the following command:
175175

@@ -245,7 +245,7 @@ The name of the connection string is passed to the context by calling a method o
245245

246246
1. Test the **Create New** link.
247247

248-
![Create page](~/tutorials/razor-pages/model/media/create-new.png)
248+
:::image type="content" source="~/tutorials/razor-pages/model/media/create-new.png" alt-text="Create page.":::
249249

250250
> [!NOTE]
251251
> You might not be able to enter decimal commas in the `Price` field. To support [jQuery validation](https://jqueryvalidation.org/) for non-English locales that use a comma (",") for a decimal point and for non US-English date formats, the app must be globalized. For globalization instructions, see [this GitHub issue](https://github.com/dotnet/AspNetCore.Docs/issues/4076#issuecomment-326590420).

aspnetcore/tutorials/razor-pages/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Visual Studio displays the following tags in a distinctive bold font used for Ta
164164
* `<input asp-for="Movie.Title" class="form-control" />`
165165
* `<span asp-validation-for="Movie.Title" class="text-danger"></span>`
166166

167-
![VS view of Create.cshtml page](~/tutorials/razor-pages/page/media/tag-helpers-vs2026.png)
167+
:::image type="content" source="~/tutorials/razor-pages/page/media/tag-helpers-vs2026.png" alt-text="Visual Studio view of Create.cshtml page showing Tag Helper highlighting.":::
168168

169169
---
170170

aspnetcore/tutorials/razor-pages/razor-pages-start.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For a more advanced introduction aimed at developers who are familiar with contr
2525

2626
At the end of this tutorial, you have a Razor Pages web app that manages a database of movies.
2727

28-
![Home or Index page](~/tutorials/razor-pages/razor-pages-start/media/home10.png)
28+
:::image type="content" source="~/tutorials/razor-pages/razor-pages-start/media/home10.png" alt-text="Home or Index page.":::
2929

3030
## Prerequisites
3131

@@ -52,11 +52,11 @@ At the end of this tutorial, you have a Razor Pages web app that manages a datab
5252
* Verify: **Do not use top-level statements** is unchecked.
5353
* Select **Create**.
5454

55-
![Additional information](~/tutorials/razor-pages/razor-pages-start/media/net10-additional-info.png)
55+
:::image type="content" source="~/tutorials/razor-pages/razor-pages-start/media/net10-additional-info.png" alt-text="Additional information dialog.":::
5656

5757
The following starter project is created:
5858

59-
![Solution Explorer](~/tutorials/razor-pages/razor-pages-start/media/solution-explorer-project.png)
59+
:::image type="content" source="~/tutorials/razor-pages/razor-pages-start/media/solution-explorer-project.png" alt-text="Solution Explorer showing the RazorPagesMovie project structure.":::
6060

6161
For alternative approaches to create the project, see [Create a new project in Visual Studio](/visualstudio/ide/create-new-project).
6262

@@ -91,13 +91,13 @@ Select **RazorPagesMovie** in **Solution Explorer**, and then press <kbd>Ctrl</k
9191

9292
Visual Studio displays the following dialog when a project isn't yet configured to use SSL:
9393

94-
![This project is configured to use SSL. To avoid SSL warnings in the browser you can choose to trust the self-signed certificate that IIS Express has generated. Would you like to trust the IIS Express SSL certificate?](~/static/trustCertVS22.png)
94+
:::image type="content" source="~/static/trustCertVS22.png" alt-text="This project is configured to use SSL. To avoid SSL warnings in the browser you can choose to trust the self-signed certificate that IIS Express has generated. Would you like to trust the IIS Express SSL certificate?":::
9595

9696
Select **Yes** if you trust the IIS Express SSL certificate.
9797

9898
The following dialog is displayed:
9999

100-
![Security warning dialog](~/static/cert.png)
100+
:::image type="content" source="~/static/cert.png" alt-text="Security warning dialog.":::
101101

102102
Select **Yes** if you agree to trust the development certificate.
103103

@@ -118,7 +118,7 @@ In Visual Studio Code, press <kbd>Ctrl</kbd>+<kbd>F5</kbd> to run the app withou
118118

119119
At the **Select debugger** prompt, select **C#**.
120120

121-
![Select environment dialog](~/tutorials/razor-pages/razor-pages-start/media/vsc-select-debugger-csharp-devkit10.png)
121+
:::image type="content" source="~/tutorials/razor-pages/razor-pages-start/media/vsc-select-debugger-csharp-devkit10.png" alt-text="Select environment dialog.":::
122122

123123
At the **Select Launch Configuration** prompt, select **C#: RazorPagesMovie [https] RazorPagesMovie**.
124124

aspnetcore/tutorials/razor-pages/search.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The `s => s.Title.Contains()` code is a [Lambda Expression](/dotnet/csharp/progr
5454
5555
Navigate to the Movies page and append a query string such as `?searchString=Ghost` to the URL. For example, `https://localhost:7247/Movies?searchString=Ghost`. The filtered movies are displayed.
5656

57-
![Index view](~/tutorials/razor-pages/search/media/search-string-ghost.png)
57+
:::image type="content" source="~/tutorials/razor-pages/search/media/search-string-ghost.png" alt-text="Index view with the search string ghost in the URL and a returned movie list.":::
5858

5959
If you add the following route template to the Index page, you can pass the search string as a URL segment. For example, `https://localhost:7247/Movies/Ghost`.
6060

@@ -64,7 +64,7 @@ If you add the following route template to the Index page, you can pass the sear
6464

6565
The preceding route constraint allows searching the title as route data (a URL segment) instead of as a query string value. The `?` in `"{searchString?}"` means this is an optional route parameter.
6666

67-
![Index view with the word ghost added to the Url and a returned movie list of two movies, Ghostbusters and Ghostbusters 2](~/tutorials/razor-pages/search/media/ghost-title-route-data.png)
67+
:::image type="content" source="~/tutorials/razor-pages/search/media/ghost-title-route-data.png" alt-text="Index view with the word ghost added to the Url and a returned movie list of two movies, Ghostbusters and Ghostbusters 2.":::
6868

6969
The ASP.NET Core runtime uses [model binding](xref:mvc/models/model-binding) to set the value of the `SearchString` property from the query string (`?searchString=Ghost`) or route data (`https://localhost:7247/Movies/Ghost`). Model binding isn't case sensitive.
7070

@@ -81,7 +81,7 @@ The HTML `<form>` tag uses the following [Tag Helpers](xref:mvc/views/tag-helper
8181

8282
Save your changes and test the filter.
8383

84-
![Index view with the word ghost typed into the Title filter textbox](~/tutorials/razor-pages/search/media/filter-by-title.png)
84+
:::image type="content" source="~/tutorials/razor-pages/search/media/filter-by-title.png" alt-text="Index view with the word ghost typed into the Title filter textbox.":::
8585

8686
## Search by genre
8787

@@ -105,7 +105,7 @@ Update the `Index.cshtml` [`<form>` element](https://developer.mozilla.org/docs/
105105

106106
Test the app by searching by genre, by movie title, and by both:
107107

108-
![Index view complete with Genre selector and Title textbox search filters](~/tutorials/razor-pages/search/media/filter-by-genre-title.png)
108+
:::image type="content" source="~/tutorials/razor-pages/search/media/filter-by-genre-title.png" alt-text="Index view complete with Genre selector and Title textbox search filters.":::
109109

110110
## Next steps
111111

aspnetcore/tutorials/razor-pages/sql.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,31 @@ LocalDB is a lightweight version of the SQL Server Express database engine that'
5151

5252
1. From the **View** menu, open **SQL Server Object Explorer** (SSOX).
5353

54-
![View menu](~/tutorials/razor-pages/sql/media/sql-server-object-explorer-vs2026.png)
54+
:::image type="content" source="~/tutorials/razor-pages/sql/media/sql-server-object-explorer-vs2026.png" alt-text="View menu showing SQL Server Object Explorer option.":::
5555

5656
1. Right-click on the `Movie` table and select **View Designer**:
5757

58-
![Contextual menus open on Movie table](~/tutorials/razor-pages/sql/media/view-designer-vs2026.png)
58+
:::image type="content" source="~/tutorials/razor-pages/sql/media/view-designer-vs2026.png" alt-text="Contextual menus open on Movie table.":::
5959

60-
![Movie tables open in Designer](~/tutorials/razor-pages/sql/media/movie-table-in-designer-vs2026.png)
60+
:::image type="content" source="~/tutorials/razor-pages/sql/media/movie-table-in-designer-vs2026.png" alt-text="Movie tables open in Designer.":::
6161

6262
Note the key icon next to `ID`. By default, EF creates a property named `ID` for the primary key.
6363

6464
1. Right-click on the `Movie` table and select **View Data**:
6565

66-
![Movie table open showing table data](~/tutorials/razor-pages/sql/media/view-movie-data-vs2026.png)
66+
:::image type="content" source="~/tutorials/razor-pages/sql/media/view-movie-data-vs2026.png" alt-text="Movie table open showing table data.":::
6767

6868
# [Visual Studio Code](#tab/visual-studio-code)
6969

7070
## SQLite
7171

7272
The [SQLite](https://www.sqlite.org/) website states:
7373

74-
> SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, Azure SQL Database engine. SQLite is the most used database engine in the world.
74+
> SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL Database engine. SQLite is the most used database engine in the world.
7575
7676
You can download many third-party tools to manage and view a SQLite database. The following image is from [DB Browser for SQLite](https://sqlitebrowser.org/). If you have a favorite SQLite tool, leave a comment on what you like about it.
7777

78-
![DB Browser for SQLite showing movie database](~/tutorials/first-mvc-app-xplat/working-with-sql/_static/dbb.png)
78+
:::image type="content" source="~/tutorials/first-mvc-app-xplat/working-with-sql/_static/dbb.png" alt-text="DB Browser for SQLite showing movie database.":::
7979

8080
> [!NOTE]
8181
> For this tutorial, use the Entity Framework Core *migrations* feature where possible. Migrations updates the database schema to match changes in the data model. However, migrations can only make changes that the EF Core provider supports, and the SQLite provider's capabilities are limited. For example, adding a column is supported, but removing or changing a column isn't supported. If you create a migration to remove or change a column, the `ef migrations add` command succeeds but the `ef database update` command fails. Due to these limitations, this tutorial doesn't use migrations for SQLite schema changes. Instead, when the schema changes, the database is dropped and re-created.
@@ -144,7 +144,7 @@ Delete all the records in the database so the seed method runs. Stop and start t
144144

145145
The app shows the seeded data:
146146

147-
![Movie application open in browser showing movie data](~/tutorials/razor-pages/sql/media/seed-data-in-app.png)
147+
:::image type="content" source="~/tutorials/razor-pages/sql/media/seed-data-in-app.png" alt-text="Movie application open in browser showing movie data.":::
148148

149149
## Next steps
150150

aspnetcore/tutorials/razor-pages/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Run the app and go to **Pages/Movies**.
8989

9090
Select the **Create New** link. Complete the form with some invalid values. When jQuery client-side validation detects the error, it displays an error message.
9191

92-
![Movie view form with multiple jQuery client-side validation errors](~/tutorials/razor-pages/validation/media/validation-errors.png)
92+
:::image type="content" source="~/tutorials/razor-pages/validation/media/validation-errors.png" alt-text="Movie view form with multiple jQuery client-side validation errors.":::
9393

9494
[!INCLUDE[](~/includes/localization/currency.md)]
9595

0 commit comments

Comments
 (0)