Skip to content

Mapster.EFCore does not support .net 6 #394

@tcattel

Description

@tcattel

Mapster.EFCore.Tests

  • change from .netcore3.1 to .net 6
  • update nugets
  • run EFCoreTest.TestFindObject
  •        dto.BuildAdapter()
              .**EntityFromContext**(context)
              .AdaptTo(poco);
    

Test method Mapster.EFCore.Tests.EFCoreTest.TestFindObject threw exception:
System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'.
at Mapster.TypeAdapterBuilderExtensions.<>c__DisplayClass0_01.<EntityFromContext>b__0(TypeAdapterConfig config) at Mapster.TypeAdapterConfig.<>c__DisplayClass99_0.<Fork>b__0(String _) in C:\Dev\Github\Mapster\src\Mapster\TypeAdapterConfig.cs:line 705 at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Mapster.TypeAdapterConfig.Fork(Action1 action, String key1, Int32 key2) in C:\Dev\Github\Mapster\src\Mapster\TypeAdapterConfig.cs:line 702
at Mapster.TypeAdapterBuilder1.ForkConfig(Action1 action, String key1, Int32 key2) in C:\Dev\Github\Mapster\src\Mapster\TypeAdapterBuilder.cs:line 39
at Mapster.TypeAdapterBuilderExtensions.EntityFromContext[TSource](TypeAdapterBuilder`1 builder, DbContext context) in C:\Dev\Github\Mapster\src\Mapster.EFCore\TypeAdapterBuilderExtensions.cs:line 18
at Mapster.EFCore.Tests.EFCoreTest.TestFindObject() in C:\Dev\Github\Mapster\src\Mapster.EFCore.Tests\EFCoreTest.cs:line 37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions