From 1fad9c138ebb12554222b9367f7bdc0b6b6d57e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Cincura=20=E2=86=B9?= Date: Mon, 16 Dec 2024 14:16:18 +0100 Subject: [PATCH] Add readonly to `Instance` fields. (#35334) --- .../TestUtilities/SqlServerPrecompiledQueryTestHelpers.cs | 2 +- .../TestUtilities/SqlitePrecompiledQueryTestHelpers.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerPrecompiledQueryTestHelpers.cs b/test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerPrecompiledQueryTestHelpers.cs index e25d0a1df12..cd6f57fbe4b 100644 --- a/test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerPrecompiledQueryTestHelpers.cs +++ b/test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerPrecompiledQueryTestHelpers.cs @@ -8,7 +8,7 @@ namespace Microsoft.EntityFrameworkCore.TestUtilities; public class SqlServerPrecompiledQueryTestHelpers : PrecompiledQueryTestHelpers { - public static SqlServerPrecompiledQueryTestHelpers Instance = new(); + public static readonly SqlServerPrecompiledQueryTestHelpers Instance = new(); protected override IEnumerable BuildProviderMetadataReferences() { diff --git a/test/EFCore.Sqlite.FunctionalTests/TestUtilities/SqlitePrecompiledQueryTestHelpers.cs b/test/EFCore.Sqlite.FunctionalTests/TestUtilities/SqlitePrecompiledQueryTestHelpers.cs index 4e9984a139c..94d7391b73c 100644 --- a/test/EFCore.Sqlite.FunctionalTests/TestUtilities/SqlitePrecompiledQueryTestHelpers.cs +++ b/test/EFCore.Sqlite.FunctionalTests/TestUtilities/SqlitePrecompiledQueryTestHelpers.cs @@ -8,7 +8,7 @@ namespace Microsoft.EntityFrameworkCore.TestUtilities; public class SqlitePrecompiledQueryTestHelpers : PrecompiledQueryTestHelpers { - public static SqlitePrecompiledQueryTestHelpers Instance = new(); + public static readonly SqlitePrecompiledQueryTestHelpers Instance = new(); protected override IEnumerable BuildProviderMetadataReferences() {