protected virtual IClassMapper GetClassMapper(Type type, DapperConfiguration configuration) { IClassMapper map = configuration.GetMap(type); if (map == null) { throw new NullReferenceException(string.Format("Map was not found for {0}", type)); } return(map); }