Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Feb 7, 2024
1 parent 8358765 commit a30e4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity-framework/core/what-is-new/ef-core-9.0/whatsnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Finally, `RelationalDbFunctionsExtensions.Least` and `RelationalDbFunctionsExten
.Select(e => EF.Functions.Least(e.Counts.Length, e.DaysVisited.Count, e.Beers.Length))
.ToListAsync();
-->
[!code-csharp[Least](../../../../samples/core/Miscellaneous/NewInEFCore9/PrimitiveCollectionsSample.cs?name=Least)]
[!code-csharp[Least](../../../../samples/core/Miscellaneous/NewInEFCore9/LeastGreatestSample.cs?name=Least)]

This query is translated to the following SQL when using EF9 executing against SQL Server 2022:

Expand Down Expand Up @@ -481,7 +481,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
#### Make existing model building conventions more extensible

Public model building conventions for applications were [introduced in EF7](xref:core/modeling/bulk-configuration#Conventions). In EF9, we have made it easier to extend some of the existing conventions. For example, [the code to map properties by attribute in EF7](core/what-is-new/ef-core-7.0/whatsnew#model-building-conventions) is this:
Public model building conventions for applications were [introduced in EF7](xref:core/modeling/bulk-configuration#Conventions). In EF9, we have made it easier to extend some of the existing conventions. For example, [the code to map properties by attribute in EF7](xref:core/what-is-new/ef-core-7.0/whatsnew#model-building-conventions) is this:

```csharp
public class AttributeBasedPropertyDiscoveryConvention : PropertyDiscoveryConvention
Expand Down

0 comments on commit a30e4e4

Please sign in to comment.