Esempio n. 1
0
 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()
     });
 }
 protected override Organization Parse()
 {
     return(new Organization
     {
         Id = ToInt(OrganizationID),
         Name = OrganizationName.ToString(),
         About = About.ToString(),
         LastUpdate = ToDateTime(LastUpdate),
         Address = CompleteAddress.ToString(),
         StreetName = StreetName.ToString(),
         StreetNumber = ToInt(StreetNo),
         Barangay = Barangay.ToString(),
         City = CityOrMunicipality.ToString(),
         State = StateOrProvince.ToString(),
         Country = Country.ToString(),
         DateEstablished = DateEstablished.ToString(),
         ParentOrganization = ParentOrganization.ToString(),
         Preacher = FeastBuilderOrPreacher.ToString(),
         Branch = BranchOrLocation.ToString(),
         ContactNumber = ContactNo.ToString(),
         Email = EmailAddress.ToString(),
         Website = Website.ToString(),
         Longitude = (float)Convert.ToDouble(Longitude),
         Latitude = (float)Convert.ToDouble(Latitude),
         RetreatSchedule = RetreatSchedule.ToString(),
         RecollectionSchedule = RecollectionSchedule.ToString(),
         TalkSchedule = TalkSchedule.ToString(),
         CampSchedule = CampSchedule.ToString(),
         VolunteerSchedule = VolunteerSchedule.ToString(),
         OrgMasking = MaskingData.ToString()
     });
 }