title: AutoMapper.Mapper.CreateMap<TSource,TDestination>()' is obsolete
body: <p>I have to classes Like</p>
  
  <pre><code>class A
  {
   public int id {get; set;}
  }
  
  class B
  {
   public C c {get; set;}
  }
  
  class C
  {
   public int id {get; set;}
   public string Name {get; set;}
  }
  </code></pre>
  
  <p>My requirement is to map id of class A to id of class C.
  Now what I was doing till now was:
       Mapper.CreateMap().ForMember(des => des.C.Id, src => src.MapFrom(x => x.id));</p>
  
  <p>and it was working fine.</p>
  
  <p>Now seems like Auto mapper has changed their implementation. and I am getting warning as below:</p>
  
  <p>AutoMapper.Mapper.CreateMap()' is obsolete: 'Dynamically creating maps will be removed in version 5.0. Use a MapperConfiguration instance and store statically as needed, or Mapper.Initialize. Use CreateMapper to create a mapper instance.</p>
  
  <p>I need to map some properties of classes which has different name and structure. Any help on this.</p>