From 8e6c79f726a524a5daf6dcb9dc687f102bde9cdf Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Wed, 1 Oct 2025 19:15:23 +0200 Subject: [PATCH] Release note updates for 10.0.0-rc.2 And add security section --- .../extensions-logging.md | 14 ---- .../core/what-is-new/ef-core-10.0/whatsnew.md | 75 +++++++++++++++++-- .../core/what-is-new/ef-core-8.0/whatsnew.md | 2 +- .../core/what-is-new/ef-core-9.0/whatsnew.md | 2 +- 4 files changed, 69 insertions(+), 24 deletions(-) diff --git a/entity-framework/core/logging-events-diagnostics/extensions-logging.md b/entity-framework/core/logging-events-diagnostics/extensions-logging.md index 86cbb334a7..c18ebea30a 100644 --- a/entity-framework/core/logging-events-diagnostics/extensions-logging.md +++ b/entity-framework/core/logging-events-diagnostics/extensions-logging.md @@ -24,26 +24,12 @@ Other application types can use the [GenericHost](/dotnet/core/extensions/generi `Microsoft.Extensions.Logging` requires creation of a . This factory should be stored as a static/global instance somewhere and used each time a DbContext is created. For example, it is common to store the logger factory as a static property on the DbContext. -### [EF Core 3.0 and above](#tab/v3) - [!code-csharp[Main](../../../samples/core/Miscellaneous/Logging/Logging/BloggingContext.cs#DefineLoggerFactory)] -### [EF Core 2.1](#tab/v2) - -```csharp -public static readonly LoggerFactory MyLoggerFactory - = new LoggerFactory(new[] { new ConsoleLoggerProvider((_, __) => true, true) }); -``` - -> [!WARNING] -> In EF Core 2.1, It is very important that applications do not create a new LoggerFactory instance for each DbContext instance. Doing so will result in a memory leak and poor performance. This has been fixed in EF Core 3.0 and above. - -*** - This singleton/global instance should then be registered with EF Core on the . For example: