示例#1
0
 public GeoIPManager()
 {
     _geoIpRepository = new GeoIPRepository();
     ObjectMapper.Bind <GeoIPCountry, GeoIPCountryBo>((source, target) => target.IPFrom         = source.IPFrom);
     ObjectMapper.Bind <GeoIPCountryBo, GeoIPCountryDto>((source, target) => target.CountryName = source.CountryName, (source, target) => target.CountryCode = source.CountryCode);
     ObjectMapper.Bind <GeoIPCityBo, GeoIPCityDto>((source, target) => target.CountryCode       = source.CountryCode);
 }
示例#2
0
 public GeoIPRepository()
 {
     ObjectMapper.Bind <GeoIPCity, GeoIPCityBo>((source, target) => target.LocationId = source.LocationId,
                                                (source, target) => target.CityName   = source.CityName);
 }