With Microsoft.EntityFrameworkCore, Version=3.1.8.0, I can use Model as: context.Model.FindEntityType. But with version 6.0.0, I cannot use it anymore.
When I check assembly, it's difference as below, I can't see IModel in version 6:
- Version 3.1.8:
Assembly Microsoft.EntityFrameworkCore, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Query.Internal;
namespace Microsoft.EntityFrameworkCore.Internal
{
public interface IDbContextDependencies
{
IModel Model { get; }
IDbSetSource SetSource { get; }
IEntityFinderFactory EntityFinderFactory { get; }
IAsyncQueryProvider QueryProvider { get; }
IStateManager StateManager { get; }
- Version 6.0.0:
Assembly Microsoft.EntityFrameworkCore, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Query;
namespace Microsoft.EntityFrameworkCore.Internal
{
public interface IDbContextDependencies
{
IDbSetSource SetSource
{
get;
}
IEntityFinderFactory EntityFinderFactory
{
get;
}
IAsyncQueryProvider QueryProvider
{
get;
}
Please advise.