protected override void SetID()
 {
     SummitDS.UnreadUsersFromRepairProspectRow thisRow = _rowToSave as SummitDS.UnreadUsersFromRepairProspectRow;
     if (thisRow != null)
     {
         this._ID = thisRow.id;
     }
 }
        protected override void SaveToRow()
        {
            SummitDS.UnreadUsersFromRepairProspectDataTable _thisTable = new SummitDS.UnreadUsersFromRepairProspectDataTable();
            if (_rowToSave == null)
            {
                _rowToSave = _thisTable.NewUnreadUsersFromRepairProspectRow();
            }
            SummitDS.UnreadUsersFromRepairProspectRow _dataRow = _rowToSave as SummitDS.UnreadUsersFromRepairProspectRow;

            if (_dataRow != null)
            {
                if (IsExisting())
                {
                    if (m_iUseID.HasValue)
                    {
                        _dataRow.user_id = m_iUseID.Value;
                    }
                    else
                    {
                        _dataRow.Setuser_idNull();
                    }
                    if (m_iShopID.HasValue)
                    {
                        _dataRow.shop_id = m_iShopID.Value;
                    }
                    else
                    {
                        _dataRow.Setshop_idNull();
                    }
                }
                else
                {
                    if (m_iUseID.HasValue)
                    {
                        _dataRow.user_id = User_id.Value;
                    }
                    else
                    {
                        _dataRow.Setuser_idNull();
                    }

                    if (m_iShopID.HasValue)
                    {
                        _dataRow.shop_id = ShopID.Value;
                    }
                    else
                    {
                        _dataRow.Setuser_idNull();
                    }

                    _thisTable.AddUnreadUsersFromRepairProspectRow(_dataRow);
                }
            }
        }
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.UnreadUsersFromRepairProspectRow row = _dataRow as SummitDS.UnreadUsersFromRepairProspectRow;

            if (row != null)
            {
                this._ID       = row.id;
                this.m_iUseID  = row.user_id;
                this.m_iShopID = row.shop_id;
                _rowToSave     = row;
            }
        }