public BannerAdvert(int id) : base(id) { //initBanner(ImagePath); _bannedCountries = new StateHashableSet <string>(new HashSet <string>()); selectBannedCountries(); }
/// <summary> /// Creates blank instance of BannerAdvert class /// </summary> public BannerAdvert() : base() { _bannedCountries = new StateHashableSet <string>(new HashSet <string>()); _geolocationList = new List <BannerAdvertGeolocation>(); AdvertPackId = NotInDatabaseId; }
public BannerAdvert(DataRow row, bool isUpToDate = true) : base(row, isUpToDate) { string imagePath = row.Field <string>(BannerAdvert.Columns.ImagePath); //initBanner(imagePath); _bannedCountries = new StateHashableSet <string>(new HashSet <string>()); selectBannedCountries(); }