title: AutoMapper tries to map DbModel to dateTime
body: <p>so here is mapping definition:</p>
  
  <pre><code> Mapper.CreateMap&lt;EditMovieModel, Video&gt;()
              .ForAllMembers(options =&gt; options.ResolveUsing&lt;CustomMovieMapper&gt;());
  </code></pre>
  
  <p>I have defined my custom resolver:</p>
  
  <pre><code>public class CustomMovieMapper : ValueResolver&lt;EditMovieModel, Video&gt;
  {
  
      protected override Video ResolveCore(EditMovieModel source)
      {
          Video video = new Video();
          video.ID = source.ID;
          video.Name = source.Name;
          video.Description = source.Description;
          video.Thumbnail = source.Thumbnail;
          video.FileURL = source.FileURL;
          video.InsertionDate = video.InsertionDate!= null ? video.InsertionDate : DateTime.Now;
          video.Director = source.Director;
          video.Actors = source.Actors;
          video.ProductionDate = DateTime.Now;
          switch (source.MovieType)
          {
              case UIMovieType.Irainian:
                  {
                      video.Language = Language.Irainian;
                      video.VideoType = VideoType.Movie;
                      video.Character = Character.Real;
                  }
                  break;
              case UIMovieType.Foriegn:
                  {
                      video.Language = Language.Foriegn;
                      video.VideoType = VideoType.Movie;
                      video.Character = Character.Real;
                  }
                  break;
              case UIMovieType.Cartoon:
                  {
                      video.VideoType = VideoType.Movie;
                      video.Character = Character.Cartoon;
                  }
                  break;
              case UIMovieType.Documentary:
                  {
                      video.VideoType = VideoType.Documentary;
                  }
                  break;
              case UIMovieType.Theater:
                  {
                      video.VideoType = VideoType.Theater;
                  }
                  break;
          }
  
          return video;
      }
  }
  </code></pre>
  
  <p>and in my controller Action method:</p>
  
  <pre><code>Video movie = _videoRepository.Get(m =&gt; m.ID == movieViewModel.ID).SingleOrDefault();
              if(movie == null)
              {
                  movie = new Video();
              }
  movie = Mapper.Map(movieViewModel, movie);
  </code></pre>
  
  <p>when mappeing occurs, I get this exception:</p>
  
  <pre><code> Missing type map configuration or unsupported mapping.
      Mapping types:
  Video -&gt; Nullable`1
  NTV.Data.Model.Video -&gt; System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
  
  Destination path:
  Video.ProductionDate.ProductionDate
  
  Source value:
  NTV.Data.Model.Video
  </code></pre>
  
  <p>but I'm not mapping Video to ProductionDate explicity. whats wrong? what I'm missing?</p>