Skip to content

Commit 5fffbf7

Browse files
Merge pull request #34475 from dotnet/main
Merge to Live
2 parents 525045a + f058479 commit 5fffbf7

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This repository contains the [ASP.NET Core documentation](https://learn.microsoft.com/aspnet/core/introduction-to-aspnet-core). See the [Contributing Guide](CONTRIBUTING.md) and the [issues list](https://github.com/dotnet/AspNetCore.Docs/issues) if you would like to help.
44

5-
ASP.NET 4.x documentation changes are made in the [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs).
5+
The [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs)contains the ASP.NET 4.x documentation.
66

77
## How to open an issue
88

aspnetcore/blazor/components/quickgrid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ However, managing column titles (names) from bound model properties is usually a
297297
public DateTime ReleaseDate { get; set; }
298298
```
299299

300-
To enable the `QuickGrid` component to use the <xref:System.ComponentModel.DataAnnotations.DisplayAttribute.Name?displayProperty=nameWithType>, subclass <xref:Microsoft.AspNetCore.Components.QuickGrid.PropertyColumn`2> either in the component or in a separate class:
300+
To enable the `QuickGrid` component to use the <xref:System.ComponentModel.DataAnnotations.DisplayAttribute.Name?displayProperty=nameWithType> property, subclass <xref:Microsoft.AspNetCore.Components.QuickGrid.PropertyColumn`2>, either in the component or in a separate class. Call the <xref:System.ComponentModel.DataAnnotations.DisplayAttribute.GetName%2A> method to return the localized <xref:System.ComponentModel.DataAnnotations.DisplayAttribute.Name?displayProperty=nameWithType> value if an unlocalized <xref:System.ComponentModel.DisplayNameAttribute.DisplayName> ([`[DisplayName]` attribute](xref:System.ComponentModel.DisplayNameAttribute)) doesn't hold the value:
301301

302302
```csharp
303303
public class DisplayNameColumn<TGridItem, TProp> : PropertyColumn<TGridItem, TProp>
@@ -309,7 +309,7 @@ public class DisplayNameColumn<TGridItem, TProp> : PropertyColumn<TGridItem, TPr
309309
var memberInfo = memberExpression.Member;
310310
Title =
311311
memberInfo.GetCustomAttribute<DisplayNameAttribute>().DisplayName ??
312-
memberInfo.GetCustomAttribute<DisplayAttribute>().Name ??
312+
memberInfo.GetCustomAttribute<DisplayAttribute>().GetName() ??
313313
memberInfo.Name;
314314
}
315315

aspnetcore/blazor/globalization-localization.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ A limited set of ASP.NET Core's localization features are supported:
2222

2323
<span aria-hidden="true">✔️</span><span class="visually-hidden">Supported:</span> <xref:Microsoft.Extensions.Localization.IStringLocalizer> and <xref:Microsoft.Extensions.Localization.IStringLocalizer%601> are supported in Blazor apps.
2424

25-
<span aria-hidden="true">❌</span><span class="visually-hidden">Not supported:</span> <xref:Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer>, <xref:Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer>, and [Data Annotations localization](xref:fundamentals/localization#dataannotations-localization) are ASP.NET Core MVC features and *not supported* in Blazor apps.
25+
<span aria-hidden="true">❌</span><span class="visually-hidden">Not supported:</span> <xref:Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer> and <xref:Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer> are ASP.NET Core MVC features and *not supported* in Blazor apps.
26+
27+
For Blazor apps, localized validation messages for [forms validation using data annotations](<xref:blazor/forms/validation#data-annotations-validator-component-and-custom-validation>) is supported if <xref:System.ComponentModel.DataAnnotations.DisplayAttribute.ResourceType?displayProperty=nameWithType> and <xref:System.ComponentModel.DataAnnotations.ValidationAttribute.ErrorMessageResourceType?displayProperty=nameWithType> are implemented.
2628

2729
This article describes how to use Blazor's globalization and localization features based on:
2830

aspnetcore/data/ef-rp/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ The following packages are automatically installed:
285285
**On macOS or Linux**
286286

287287
```dotnetcli
288-
dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite
288+
dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -dbProvider sqlite
289289
```
290290

291291
---
@@ -801,7 +801,7 @@ The following packages are automatically installed:
801801
**On macOS or Linux**
802802

803803
```dotnetcli
804-
dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite
804+
dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -dbProvider sqlite
805805
```
806806

807807
---

aspnetcore/security/authorization/roles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: rick-anderson
44
description: Learn how to restrict ASP.NET Core controller and action access by passing roles to the Authorize attribute.
55
ms.author: riande
66
monikerRange: '>= aspnetcore-3.1'
7-
ms.date: 10/14/2016
7+
ms.date: 10/14/2024
88
uid: security/authorization/roles
99
---
1010
# Role-based authorization in ASP.NET Core
@@ -57,8 +57,8 @@ Access to an action can be limited by applying additional role authorization att
5757

5858
In the preceding `ControlAllPanelController` controller:
5959

60-
* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `SetTime` action.
61-
* Only members of the `Administrator` role can access the `ShutDown` action.
60+
* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `ShutDown` action.
61+
* Only members of the `Administrator` role can access the `SetTime` action.
6262

6363
A controller can be secured but allow anonymous, unauthenticated access to individual actions:
6464

0 commit comments

Comments
 (0)