Skip to content

aspnet-modules/aspnet-module-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNet.Module.Mapper

Packages for registering IMapper and configuring Mapster-based object mapping.

Installation

# IMapper abstractions
dotnet add package AspNet.Module.Mapper.Abstractions

# host integration
dotnet add package AspNet.Module.Mapper

Mapper Configuration

public class MapperConfig : TypeAdapterConfig
{
    public MapperConfig()
    {
        ForType<SomeEntity, SomeDto>();
    }
}

Module Registration

using AspNet.Module.Mapper;

var builder = AspNetWebApplication.CreateBuilder(args);
builder.RegisterModule<MapperModule<MapperConfig>>();

Source Code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages