protected override void Load(SafeDataReader dr) { m_id = dr.GetInt32("id"); m_name = dr.GetString("name"); m_region = dr.GetString("region"); m_phone = dr.GetString("phone"); m_fax = dr.GetString("fax"); m_notes = dr.GetString("notes"); m_active = dr.GetBoolean("active"); m_lastModified = dr.GetDateTime("lastmodified"); m_creationDate = dr.GetDateTime("creationdate"); m_updatedBy = dr.GetString("updatedby"); m_createdBy = dr.GetString("createdby"); m_defaultReturnType = (ReturnType)dr.GetInt32("default_return_type"); }
protected override void Load(SafeDataReader dr) { // We don't load the org's ID. m_id = dr.GetInt32("id"); m_label = dr.GetString("label"); m_street = dr.GetString("street"); m_streetOnly = dr.GetBoolean("street_only"); m_city = dr.GetString("city"); m_state = dr.GetString("state"); m_postalCode = dr.GetString("postal_code"); m_countryCode = dr.GetString("country").ToUpper(); UpdateCountry(); }