public static AddressChannel LoadAll(DataRow row) { AddressChannel ac = Load(row, "ac_"); ac.AddressChannelType = IDandDescrDB.Load(row, "act_address_channel_type_id", "act_descr"); return(ac); }
public Contact(int contact_id, int entity_id, int contact_type_id, string free_text, string addr_line1, string addr_line2, int address_channel_id, int suburb_id, int country_id, int site_id, bool is_billing, bool is_non_billing, DateTime contact_date_added, DateTime contact_date_modified) { this.contact_id = contact_id; this.entity_id = entity_id; this.contact_type = new ContactType(contact_type_id); this.free_text = free_text; this.addr_line1 = addr_line1; this.addr_line2 = addr_line2; this.address_channel = address_channel_id == -1 ? null : new AddressChannel(address_channel_id); this.suburb = suburb_id == -1 ? null : new Suburb(suburb_id); this.country = country_id == -1 ? null : new IDandDescr(country_id); this.site = site_id == -1 ? null : new Site(site_id); this.is_billing = is_billing; this.is_non_billing = is_non_billing; this.contact_date_added = contact_date_added; this.contact_date_modified = contact_date_modified; }