Skip to content

Commit 073cf90

Browse files
authored
Merge pull request #35463 from dotnet/main
2 parents 03a7311 + b608c4b commit 073cf90

File tree

4 files changed

+41
-43
lines changed

4 files changed

+41
-43
lines changed

aspnetcore/blazor/tutorials/movie-database-app/part-2.md

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -134,32 +134,18 @@ dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
134134
> [!IMPORTANT]
135135
> After the first eight commands execute, make sure that you press <kbd>Enter</kbd> on the keyboard to execute the last command.
136136
137-
:::moniker range=">= aspnetcore-9.0"
137+
:::moniker range=">= aspnetcore-9.0 < aspnetcore-10.0"
138138

139-
<!-- UPDATE 10.0 - Remove this when the 9.0.300 SDK lands. -->
139+
<!-- UPDATE 10.0 - Remove at 10.0 GA -->
140140

141141
> [!IMPORTANT]
142-
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevents scaffolding from executing with the following exception:
142+
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevented scaffolding from executing with the following exception:
143143
>
144144
> > :::no-loc text="Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.":::
145145
>
146-
> To resolve the error until the .NET SDK 9.0.300 is released, add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
147-
>
148-
> ```dotnetcli
149-
> dotnet add package Microsoft.EntityFrameworkCore.Design
150-
> ```
151-
>
152-
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
146+
> To resolve the error, upgrade to a .NET SDK of 9.0.300 or later.
153147
>
154-
> ```diff
155-
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
156-
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
157-
> <PrivateAssets>all</PrivateAssets>
158-
> + <Publish>true</Publish>
159-
> </PackageReference>
160-
> ```
161-
>
162-
> The preceding changes are a workaround for a breaking change in .NET 9.0.200 EF Core tooling. This workaround won't be required for .NET SDK 9.0.300 or later, when the entire package reference can be removed from the app. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
148+
> For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
163149
164150
:::moniker-end
165151

@@ -205,32 +191,20 @@ dotnet add package Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdap
205191
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
206192
```
207193

208-
:::moniker range=">= aspnetcore-9.0"
194+
:::moniker range=">= aspnetcore-9.0 < aspnetcore-10.0"
209195

210-
<!-- UPDATE 10.0 - Remove this when the 9.0.300 SDK lands. -->
196+
<!-- UPDATE 10.0 - Remove at 10.0 GA -->
211197

212198
> [!IMPORTANT]
213-
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevents scaffolding from executing with the following exception:
199+
> A breaking change in EF Core tooling for .NET SDK 9.0.200 prevented scaffolding from executing with the following exception:
214200
>
215201
> > :::no-loc text="Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.":::
216202
>
217-
> To resolve the error until the .NET SDK 9.0.300 is released, add a package reference to the app for the [`Microsoft.EntityFrameworkCore.Design`](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Design) NuGet package:
203+
> To resolve the error, upgrade to a .NET SDK of 9.0.300 or later.
218204
>
219-
> ```dotnetcli
220-
> dotnet add package Microsoft.EntityFrameworkCore.Design
221-
> ```
222-
>
223-
> Open the app's project file (`BlazorWebAppMovies.csproj`). Mark the `Microsoft.EntityFrameworkCore.Design` assembly reference as publishable by adding `<Publish>true</Publish>` to the package reference. In the following example, the `{VERSION}` placeholder is the package's version and remains unchanged:
224-
>
225-
> ```diff
226-
> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="{VERSION}">
227-
> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
228-
> <PrivateAssets>all</PrivateAssets>
229-
> + <Publish>true</Publish>
230-
> </PackageReference>
231-
> ```
232-
>
233-
> The preceding changes are a workaround for a breaking change in .NET 9.0.200 EF Core tooling. This workaround won't be required for .NET SDK 9.0.300 or later, when the entire package reference can be removed from the app. For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
205+
> For more information, see [Breaking changes in EF Core 9 (EF9)](/ef/core/what-is-new/ef-core-9.0/breaking-changes#microsoftentityframeworkcoredesign-not-found-when-using-ef-tools).
206+
207+
:::moniker-end
234208

235209
:::moniker-end
236210

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ This section describes new features for minimal APIs.
3939

4040
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/ValidationSupportMinAPI.md)]
4141

42+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/MinimalAPIValidationRecordTypes.md)]
43+
4244
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/sse.md)]
4345

4446
## OpenAPI
@@ -59,6 +61,8 @@ This section describes new features for OpenAPI.
5961

6062
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiSchemasInTransformers.md)]
6163

64+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiNetUpdatePrev17.md)]
65+
6266
### Authentication and authorization
6367

6468
This section describes new features for authentication and authorization.
Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
### Improvements to Minimal APIs Validation
2-
1+
#### Validation with record types
32
<!-- https://github.com/dotnet/aspnetcore/pull/61193 -->
43
<!-- https://github.com/dotnet/aspnetcore/pull/61402 -->
5-
Beginning in Preview 4, ASP.NET Core supports validation on record types. With this enhancement,
6-
inputs to API endpoints defined using `record` types are now validated automatically, in the same way as
7-
class types.
4+
5+
Minimal APIs also support validation with C# record types. Record types can be validated using attributes from the <xref:System.ComponentModel.DataAnnotations?displayProperty=fullName> namespace, similar to classes. For example:
6+
7+
```csharp
8+
public record Product(
9+
[Required] string Name,
10+
[Range(1, 1000)] int Quantity);
11+
```
12+
13+
When using record types as parameters in Minimal API endpoints, validation attributes are automatically applied in the same way as class types:
14+
15+
```csharp
16+
app.MapPost("/products", (Product product) =>
17+
{
18+
// Endpoint logic here
19+
return TypedResults.Ok(product);
20+
});
21+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### OpenAPI.NET updated to Preview.17
2+
3+
The OpenAPI.NET library used in ASP.NET Core OpenAPI document generation was upgraded to [v2.0.0-preview17](https://www.nuget.org/packages/Microsoft.OpenApi/2.0.0-preview.17). This version includes a number of bug fixes and improvements and also introduces some breaking changes. The breaking changes should only affect users that use document, operation, or schema transformers. Breaking changes in this iteration that may affect developers include the following:
4+
5+
* [Ephemeral object properties are now in Metadata](https://github.com/microsoft/OpenAPI.NET/blob/main/docs/upgrade-guide-2.md#ephemeral-object-properties-are-now-in-metadata)
6+
* [Use HTTP Method Object Instead of Enum](https://github.com/microsoft/OpenAPI.NET/blob/main/docs/upgrade-guide-2.md#use-http-method-object-instead-of-enum)

0 commit comments

Comments
 (0)