MapsterMapper / Mapster.EFCore

EF Core plugin for Mapster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for EF Core 7.0 & Mapster 7.4.0

Geestarraw opened this issue · comments

Please update the project to use EF Core 7.0 and Mapster 7.4.0-pre05. The latter has changes to it and requires the use of ITypeAdapterBuilder instead of TypeAdapterBuilder.

Currently the dependencies are for Mapster 4.1.1 and Ef Core 2.0.0 which are way old.

I use Mapster.EFCore 5.1.1-pre02 and Mapster 7.4.0-pre06 and this code just doesn't work

model
    .BuildAdapter()
     .EntityFromContext(_dbContext)
     .AdaptTo(entity);

Is the problem with ITypeAdapterBuilder?