diff --git a/src/EFCore/Infrastructure/ModelCacheKey.cs b/src/EFCore/Infrastructure/ModelCacheKey.cs
index cb216b9b1ba..2d11041b1cf 100644
--- a/src/EFCore/Infrastructure/ModelCacheKey.cs
+++ b/src/EFCore/Infrastructure/ModelCacheKey.cs
@@ -16,6 +16,18 @@ public class ModelCacheKey
private readonly Type _dbContextType;
private readonly bool _designTime;
+ ///
+ /// X
+ ///
+ public virtual Type ContextType
+ => _dbContextType;
+
+ ///
+ /// X
+ ///
+ public virtual bool DesignTime
+ => _designTime;
+
///
/// Initializes a new instance of the class.
///
diff --git a/src/EFCore/Infrastructure/ModelSource.cs b/src/EFCore/Infrastructure/ModelSource.cs
index 2b70c7dd084..d1d7eb397b7 100644
--- a/src/EFCore/Infrastructure/ModelSource.cs
+++ b/src/EFCore/Infrastructure/ModelSource.cs
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System.Collections;
+using System.Text;
using Microsoft.Extensions.Caching.Memory;
namespace Microsoft.EntityFrameworkCore.Infrastructure;
@@ -30,6 +32,7 @@ namespace Microsoft.EntityFrameworkCore.Infrastructure;
public class ModelSource : IModelSource
{
private readonly object _syncObject = new();
+ private Dictionary