Exemple #1
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.UserRow _thisRow = _dataRow as SummitDS.UserRow;

            if (_thisRow != null)
            {
                this._ID                              = _thisRow.user_id;
                this.m_strEmail                       = _thisRow.IsemailNull() ? String.Empty : _thisRow.email;
                this.m_strPhone                       = _thisRow.IsphoneNull() ? String.Empty : _thisRow.phone;
                this.m_strUserName                    = _thisRow.IsusernameNull() ? String.Empty : _thisRow.username;
                this.m_strZip                         = _thisRow.IszipNull() ? String.Empty : _thisRow.zip;
                this.m_dtAppDownLoadDate              = _thisRow.IsappDownLoadDateNull() ? (Nullable <DateTime>)null : _thisRow.appDownLoadDate;
                this.m_bIsRegistred                   = _thisRow.IsisRegistredNull() ? (Nullable <Boolean>)null : _thisRow.isRegistred;
                this.m_bIsNew                         = _thisRow.IsisNewNull() ? (Nullable <Boolean>)null : _thisRow.isNew;
                this.m_bIsRegistred_Shop              = _thisRow.IsisRegistred_ShopNull() ? (Nullable <Boolean>)null : _thisRow.isRegistred_Shop;
                this.m_strPhone_Id                    = _thisRow.Isphone_idNull() ? String.Empty : _thisRow.phone_id;
                this.m_strFirstName                   = _thisRow.Isfirst_nameNull() ? String.Empty : _thisRow.first_name;
                this.m_strLastName                    = _thisRow.Islast_nameNull() ? String.Empty : _thisRow.last_name;
                this.m_strAddress1                    = _thisRow.Isaddress1Null() ? String.Empty : _thisRow.address1;
                this.m_strAddress2                    = _thisRow.Isaddress2Null() ? String.Empty : _thisRow.address2;
                this.m_strCity                        = _thisRow.IscityNull() ? String.Empty : _thisRow.city;
                this.m_strState                       = _thisRow.IsstateNull() ? String.Empty : _thisRow.state;
                this.m_bIsShow                        = _thisRow.IsisShowNull() ? (Nullable <Boolean>)null : _thisRow.isShow;
                this.m_bIsShowEmailMarketing          = _thisRow.IsisShowEmailMarketingNull() ? (Nullable <Boolean>)null : _thisRow.isShowEmailMarketing;
                this.m_bIsShowTextMarketing           = _thisRow.IsisShowTextMarketingNull() ? (Nullable <Boolean>)null : _thisRow.isShowTextMarketing;
                this.m_dtUpdatedEntryTime             = _thisRow.IsupdatedEntryTimeNull() ? (Nullable <DateTime>)null : _thisRow.updatedEntryTime;
                this.m_strPhone2                      = _thisRow.Isphone2Null() ? String.Empty : _thisRow.phone2;
                this.m_bIsOptOutNotificationSent      = _thisRow.IsisOptOutNotificationSentNull() ? (Nullable <Boolean>)null : _thisRow.isOptOutNotificationSent;
                this.m_bIsOptedOutForMobileMessage    = _thisRow.IsisOptedOutForMobileMessageNull() ? (Nullable <Boolean>)null : _thisRow.isOptedOutForMobileMessage;
                this.m_strPush_notification_device_id = _thisRow.Ispush_notification_device_idNull() ? String.Empty : _thisRow.push_notification_device_id;
                this.m_iDevice_Type                   = _thisRow.IsDevice_TypeNull() ? (Nullable <int>)null : _thisRow.Device_Type;
                //  this.m_dt_ts = _thisRow.Is_tsNull() ? (Nullable<DateTime>) null : _thisRow._ts ;
                _rowToSave = _thisRow;
            }
        }