protected override void LoadFromRow(DataRow _dataRow) { SummitDS.AccidentReportRow _thisRow = _dataRow as SummitDS.AccidentReportRow; if (_thisRow != null) { this._ID = _thisRow.accident_id; this.iUserId = _thisRow.Isuser_idNull() ? (Nullable <Int32>)null : _thisRow.user_id; this.m_strStreet = _thisRow.IsstreetNull() ? String.Empty : _thisRow.street; this.m_strCity = _thisRow.IscityNull() ? String.Empty : _thisRow.city; this.m_strState = _thisRow.IsstateNull() ? String.Empty : _thisRow.state; this.m_strCity = _thisRow.IscityNull() ? String.Empty : _thisRow.city; this.m_strState = _thisRow.IsstateNull() ? String.Empty : _thisRow.state; this.m_strDescription = _thisRow.IsdescriptionNull() ? String.Empty : _thisRow.description; this.m_strDriverName = _thisRow.Isdriver_nameNull() ? String.Empty : _thisRow.driver_name; this.m_strDriverPhone = _thisRow.Isdriver_phoneNull() ? String.Empty : _thisRow.driver_phone; this.m_strDriverLicenseStatePlate = _thisRow.Isdriver_license_state_plateNull() ? String.Empty : _thisRow.driver_license_state_plate; this.m_strDriverLicenseNo = _thisRow.Isdriver_license_noNull() ? String.Empty : _thisRow.driver_license_no; this.m_strDriverVehicleType = _thisRow.Isdriver_vehicle_typeNull() ? String.Empty : _thisRow.driver_vehicle_type; this.m_strInsuranceCompanyName = _thisRow.Isinsurance_company_nameNull() ? String.Empty : _thisRow.insurance_company_name; this.m_strInsurancePolicyNo = _thisRow.Isinsurance_policy_noNull() ? String.Empty : _thisRow.insurance_policy_no; this.m_strPoliceOffice = _thisRow.Ispolice_officeNull() ? String.Empty : _thisRow.police_office; this.m_strPoliceReportNo = _thisRow.Ispolice_report_noNull() ? String.Empty : _thisRow.police_report_no; this.m_strWitnessComments = _thisRow.Iswitness_commentsNull() ? String.Empty : _thisRow.witness_comments; this.m_strWitnesses = _thisRow.IswitnessesNull() ? String.Empty : _thisRow.witnesses; this.m_iMessageId = _thisRow.Ismessage_idNull() ? (Nullable <Int32>)null : _thisRow.message_id; _rowToSave = _thisRow; } }