From 3eef6e898cff3dae594fd609d0f3b908a448e996 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 6 Oct 2025 10:43:19 +0800 Subject: [PATCH 1/4] Update Blazor project instructions and code samples --- docs/en/tutorials/todo/layered/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/tutorials/todo/layered/index.md b/docs/en/tutorials/todo/layered/index.md index b990704c7a..a6cc230e97 100644 --- a/docs/en/tutorials/todo/layered/index.md +++ b/docs/en/tutorials/todo/layered/index.md @@ -115,7 +115,7 @@ abp install-libs {{if UI=="MVC" || UI=="BlazorServer" || UI=="BlazorWebApp"}} -It is good to run the application before starting the development. Ensure the {{if UI=="BlazorServer"}}`TodoApp.Blazor`{{else}}`TodoApp.Web`{{end}} project is the startup project, then run the application (Ctrl+F5 in Visual Studio) to see the initial UI: +It is good to run the application before starting the development. Ensure the {{if UI=="Blazor" || UI=="BlazorServer" || UI=="BlazorWebApp"}}`TodoApp.Blazor`{{else}}`TodoApp.Web`{{end}} project is the startup project, then run the application (Ctrl+F5 in Visual Studio) to see the initial UI: {{else if UI=="Blazor" || UI=="MAUIBlazor"}} @@ -165,7 +165,7 @@ All ready. We can start coding! ## Domain Layer -This application has a single [entity](../../../framework/architecture/domain-driven-design/entities.md) and we'll start by creating it. Create a new `TodoItem` class inside the *TodoApp.Domain* project: +This application has a single [entity](../../../framework/architecture/domain-driven-design/entities.md) and we'll start by creating it. Create a new `TodoItem` class inside the *TodoApp.Domain* project under the `Entities` folder, as shown below: ````csharp using System; @@ -578,7 +578,7 @@ using System.Collections.Generic; using System.Threading.Tasks; {{if UI=="Blazor" || UI=="BlazorWebApp"}} -namespace TodoApp.Blazor.Client.Pages; +amespace TodoApp.Blazor.Client.Pages {{else if UI=="BlazorServer"}} namespace TodoApp.Blazor.Pages; {{else if UI=="MAUIBlazor"}} From c26a13eacbd6e6fa5adaf6432bdd137453ede936 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 6 Oct 2025 10:48:41 +0800 Subject: [PATCH 2/4] Set standalone to false in HomeComponent --- docs/en/tutorials/todo/layered/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/tutorials/todo/layered/index.md b/docs/en/tutorials/todo/layered/index.md index a6cc230e97..73f4ff214d 100644 --- a/docs/en/tutorials/todo/layered/index.md +++ b/docs/en/tutorials/todo/layered/index.md @@ -756,6 +756,7 @@ import { TodoItemDto, TodoService } from '@proxy'; @Component({ selector: 'app-home', + standalone: false, templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) From 076416c1b970a2d71436133a7a53aa496b16f901 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 6 Oct 2025 10:57:38 +0800 Subject: [PATCH 3/4] Add SQL Server Express LocalDB requirement for EF --- docs/en/tutorials/todo/layered/index.md | 6 +++--- docs/en/tutorials/todo/single-layer/index.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/tutorials/todo/layered/index.md b/docs/en/tutorials/todo/layered/index.md index 73f4ff214d..96765c5864 100644 --- a/docs/en/tutorials/todo/layered/index.md +++ b/docs/en/tutorials/todo/layered/index.md @@ -54,11 +54,11 @@ This documentation has a video tutorial on **YouTube**!! You can watch it here: * An IDE (e.g. [Visual Studio](https://visualstudio.microsoft.com/vs/)) that supports [.NET 9.0+](https://dotnet.microsoft.com/download/dotnet) development. * [Node v20.11+](https://nodejs.org/) - +{{if DB=="EF"}} +* [SQL Server Express LocalDB](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb) +{{end}} {{if DB=="Mongo"}} - * [MongoDB Server 4.0+](https://docs.mongodb.com/manual/administration/install-community/) - {{end}} ## Install ABP CLI Tool diff --git a/docs/en/tutorials/todo/single-layer/index.md b/docs/en/tutorials/todo/single-layer/index.md index a823e91dc0..0e3adc351d 100644 --- a/docs/en/tutorials/todo/single-layer/index.md +++ b/docs/en/tutorials/todo/single-layer/index.md @@ -50,11 +50,11 @@ This documentation has a video tutorial on **YouTube**!! You can watch it here: * An IDE (e.g. [Visual Studio](https://visualstudio.microsoft.com/vs/)) that supports [.NET 9.0+](https://dotnet.microsoft.com/download/dotnet) development. * [Node v20.11+](https://nodejs.org/) - +{{if DB=="EF"}} +* [SQL Server Express LocalDB](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb) +{{end}} {{if DB=="Mongo"}} - * [MongoDB Server 4.0+](https://docs.mongodb.com/manual/administration/install-community/) - {{end}} ## Creating a New Solution From ac0668ac4ad877b28465a42eaa8a5156bc8f4cff Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 6 Oct 2025 11:14:25 +0800 Subject: [PATCH 4/4] Clarify ABP CSRF/Antiforgery compatibility in docs --- docs/en/framework/infrastructure/csrf-anti-forgery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/framework/infrastructure/csrf-anti-forgery.md b/docs/en/framework/infrastructure/csrf-anti-forgery.md index df36c4f985..f35e218774 100644 --- a/docs/en/framework/infrastructure/csrf-anti-forgery.md +++ b/docs/en/framework/infrastructure/csrf-anti-forgery.md @@ -17,7 +17,7 @@ Once you enable it; Especially, the second point is a pain for your clients and unnecessarily consumes your server resources. -> You can read more about the ASP.NET Core antiforgery system in its own [documentation](https://docs.microsoft.com/en-us/aspnet/core/security/anti-request-forgery). +> You can use any ASP.NET Core antiforgery features, like `ValidateAntiForgeryToken`, `AutoValidateAntiforgeryToken`, or `IgnoreAntiforgeryToken`, for more information, see the [official documentation](https://docs.microsoft.com/en-us/aspnet/core/security/anti-request-forgery). ## The Solution