Skip to content

How to use IRegister in asp.net 4.7.2 projects? #733

@netty2019

Description

@netty2019

My project is asp.net 4.7.2 MVC, Mapster version 7.2.0

Configuring IRegister does not work

public class HjCollectDtlMapper : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        config.ForType<SaveDtlInput, HjCollectDtl>()
            .Map(u => u.IsManual, p => p.IsManual ? "Y" : "N");
    }
}

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