protected override Church Parse() { return(new Church { Id = ToInt(SimbahanID), StreetNumber = ToInt(StreetNo), StreetName = StreetName.ToString(), Barangay = Barangay.ToString(), StateProvince = StateOrProvince.ToString(), City = City.ToString(), ZipCode = ZipCode.ToString(), CompleteAddress = CompleteAddress.ToString(), Diocese = Diocese.ToString(), Parish = Parish.ToString(), Priest = ParishPriest.ToString(), Vicariate = Vicariate.ToString(), DateEstablished = DateEstablished.ToString(), LastUpdate = ToDateTime(LastUpdate), FeastDay = FeastDay.ToString(), ContactNo = ContactNo.ToString(), Latitude = ToDouble(Latitude), Longitude = ToDouble(Longitude), HasAdorationChapel = ToBoolean(HasAdorationChapel), ChurchHistory = ChurchHistory.ToString(), OfficeHours = OfficeHours.ToString(), ChurchTypeId = ToInt(ChurchTypeID), Website = Website.ToString(), EmailAddress = EmailAddress.ToString(), DevotionSchedule = DevotionSchedule.ToString(), LocationId = ToInt(LocationID), ChurchCode = ChurchCode.ToString() }); }
static public PrayerSeason CreatePrayerSeason(Place place, bool testMode) { PrayerSeason prayerSeason = null; switch (place.DomSeason) { case DominicanSeasons.XMas: prayerSeason = new XMas(place, testMode); break; case DominicanSeasons.OT1: prayerSeason = new OrdinaryTime(place, testMode); break; case DominicanSeasons.Ash_Wednesday_Week: prayerSeason = new AshWednesdayWeek(place, testMode); break; case DominicanSeasons.Lent: prayerSeason = new Lent(place, testMode); break; case DominicanSeasons.Holy_Week: prayerSeason = new HolyWeek(place, testMode); break; case DominicanSeasons.Easter: prayerSeason = new Easter(place, testMode); break; case DominicanSeasons.OT2: prayerSeason = new OrdinaryTime(place, testMode); break; case DominicanSeasons.Advent: prayerSeason = new Advent(place, testMode); break; case DominicanSeasons.XMas_II: prayerSeason = new XMas(place, testMode); break; //case DominicanSeasons.EndOfYear: //break; case DominicanSeasons.Feasts: default: prayerSeason = new FeastDay(place, testMode); break; } return(prayerSeason); }
protected override Saint Parse() { return(new Saint { Id = Convert.ToInt64(SaintID), Name = Name.ToString(), Biography = Biography.ToString(), FeastDay = FeastDay.ToString(), Categories = Categories.ToString(), BirthDate = BirthDate.ToString(), DeathDate = DeathDate.ToString(), CanonizeDate = CanonizeDate.ToString(), RelatedChurch = RelatedChurch.ToString(), Patron = Patron.ToString(), ImagePath = ImagePath.ToString(), PublicationDate = ToDateTime(PublicationDate) }); }