AutoMapper Migrating from static API : <p><a href="https://github.com/AutoMapper/AutoMapper/wiki/Migrating-from-static-API" rel="noreferrer">https://github.com/AutoMapper/AutoMapper/wiki/Migrating-from-static-API</a></p>

<p>this change breaks my system.</p>

<p>Before update, I use:</p>

<p>===> Startup.cs</p>

<pre><code>public class Startup
{
    public Startup(IHostingEnvironment env)
    {
    ...
        MyAutoMapperConfiguration.Configure();
    }
}
</code></pre>

<p>===> MyAutoMapperConfiguration.cs</p>

<pre><code>public class MyAutoMapperConfiguration
{
    public static void Configure()
    {
        Mapper.Initialize(a =&gt;
        {
            a.AddProfile&lt;AbcMappingProfile&gt;();
            a.AddProfile&lt;XyzMappingProfile&gt;();
            a.AddProfile&lt;QweMappingProfile&gt;();
        });
    }
}
</code></pre>

<p>===> AbcMappingProfile.cs</p>

<pre><code>public class AbcMappingProfile : Profile
{
    protected override void Configure()
    {
        Mapper.CreateMap&lt;AbcEditViewModel, Abc&gt;();
        Mapper.CreateMap&lt;Abc, AbcEditViewModel&gt;();
        ...
    }
}
</code></pre>

<p>ERROR:</p>

<p>'Mapper.CreateMap()' is obsolete: 'The static API will be removed in version 5.0. Use a MapperConfiguration instance and store statically as needed. Use CreateMapper to create a mapper instanace.'</p>

<p>I can use Mapper.Map. Now How can I use it</p>
