There was an error while loading. Please reload this page.
Welcome to the AutoMapper.Collection wiki!
this how to use it in your asp core 8+ project
in the program.cs file add (after AddDbContext service if you are using AutoMapper.Collection.EntityFrameworkCore)
AddDbContext
AutoMapper.Collection.EntityFrameworkCore
builder.Services.AddAutoMapper(cfg => { // for collection cfg.AddCollectionMappers(); // for entity framework core cfg.UseEntityFrameworkCoreModel<DB>(builder.Services); }, typeof(MappingProfile).Assembly);