Skip to content

Mapster IMapper with config fork #325

@adriano-digiere

Description

@adriano-digiere

How to properly use IMapper (dependency injection) with a config fork?? I have the following class:

`public class Example: IExample
{
#region Variables and Properties

public IAppContext Context { get; }
private readonly IMapper _mapper;

#endregion Variables and Properties

#region Constructors

public Example(IAppContext context, IMapper mapper)
{
    Context = context;
    _mapper = mapper;
}

#endregion Constructors

}`

How to use _mapper with a fork in TypeAdapterConfig?

Thanks.

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