diff --git a/README.md b/README.md index c7783973251d..891d2a157d23 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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. -ASP.NET 4.x documentation changes are made in the [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs). +The [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs)contains the ASP.NET 4.x documentation. ## How to open an issue diff --git a/aspnetcore/blazor/components/quickgrid.md b/aspnetcore/blazor/components/quickgrid.md index 93219ef69aee..dfa7ae705847 100644 --- a/aspnetcore/blazor/components/quickgrid.md +++ b/aspnetcore/blazor/components/quickgrid.md @@ -297,7 +297,7 @@ However, managing column titles (names) from bound model properties is usually a public DateTime ReleaseDate { get; set; } ``` -To enable the `QuickGrid` component to use the , subclass either in the component or in a separate class: +To enable the `QuickGrid` component to use the property, subclass , either in the component or in a separate class. Call the method to return the localized value if an unlocalized ([`[DisplayName]` attribute](xref:System.ComponentModel.DisplayNameAttribute)) doesn't hold the value: ```csharp public class DisplayNameColumn : PropertyColumn @@ -309,7 +309,7 @@ public class DisplayNameColumn : PropertyColumn().DisplayName ?? - memberInfo.GetCustomAttribute().Name ?? + memberInfo.GetCustomAttribute().GetName() ?? memberInfo.Name; } diff --git a/aspnetcore/blazor/globalization-localization.md b/aspnetcore/blazor/globalization-localization.md index 1995d67115b2..24b50eec1434 100644 --- a/aspnetcore/blazor/globalization-localization.md +++ b/aspnetcore/blazor/globalization-localization.md @@ -22,7 +22,9 @@ A limited set of ASP.NET Core's localization features are supported: Supported: and are supported in Blazor apps. -Not supported: , , and [Data Annotations localization](xref:fundamentals/localization#dataannotations-localization) are ASP.NET Core MVC features and *not supported* in Blazor apps. +Not supported: and are ASP.NET Core MVC features and *not supported* in Blazor apps. + +For Blazor apps, localized validation messages for [forms validation using data annotations]() is supported if and are implemented. This article describes how to use Blazor's globalization and localization features based on: diff --git a/aspnetcore/data/ef-rp/intro.md b/aspnetcore/data/ef-rp/intro.md index ebfdab092f77..aa620fd3e261 100644 --- a/aspnetcore/data/ef-rp/intro.md +++ b/aspnetcore/data/ef-rp/intro.md @@ -285,7 +285,7 @@ The following packages are automatically installed: **On macOS or Linux** ```dotnetcli - dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite + dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -dbProvider sqlite ``` --- @@ -801,7 +801,7 @@ The following packages are automatically installed: **On macOS or Linux** ```dotnetcli - dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -sqlite + dotnet aspnet-codegenerator razorpage -m Student -dc ContosoUniversity.Data.SchoolContext -udl -outDir Pages/Students --referenceScriptLibraries -dbProvider sqlite ``` --- diff --git a/aspnetcore/security/authorization/roles.md b/aspnetcore/security/authorization/roles.md index 928098f0f426..b97b3008189b 100644 --- a/aspnetcore/security/authorization/roles.md +++ b/aspnetcore/security/authorization/roles.md @@ -4,7 +4,7 @@ author: rick-anderson description: Learn how to restrict ASP.NET Core controller and action access by passing roles to the Authorize attribute. ms.author: riande monikerRange: '>= aspnetcore-3.1' -ms.date: 10/14/2016 +ms.date: 10/14/2024 uid: security/authorization/roles --- # Role-based authorization in ASP.NET Core @@ -57,8 +57,8 @@ Access to an action can be limited by applying additional role authorization att In the preceding `ControlAllPanelController` controller: -* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `SetTime` action. -* Only members of the `Administrator` role can access the `ShutDown` action. +* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `ShutDown` action. +* Only members of the `Administrator` role can access the `SetTime` action. A controller can be secured but allow anonymous, unauthenticated access to individual actions: