Exemplo n.º 1
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.ReocurringCampaignUsersRow row = _dataRow as SummitDS.ReocurringCampaignUsersRow;

            if (row != null)
            {
                this._ID                = row.reocurring_campaign_user_id;
                this.m_iRowId           = row.reocurring_campaign_user_id;
                this.m_iFrequencyID     = row.Isfrequency_idNull() ? (Nullable <Int32>)null : row.frequency_id;
                this.m_iShopID          = row.Isshop_idNull() ? (Nullable <Int32>)null : row.shop_id;
                this.m_iVehicleID       = row.Isvehicle_idNull() ? (Nullable <Int32>)null : row.vehicle_id;
                this.m_iUserID          = row.Isshop_idNull() ? (Nullable <Int32>)null : row.user_id;
                this.m_strPhone         = row.IsphoneNull() ? String.Empty : row.phone;
                this.m_dtDeliveredDate  = row.Isdelivered_dateNull() ? (Nullable <DateTime>)null : row.delivered_date;
                this.m_bIsMailSent      = row.IsisMailSentNull() ? (Nullable <Boolean>)null : row.isMailSent;
                this.m_strFirstName     = row.Isfirst_nameNull() ? String.Empty : row.first_name;
                this.m_strUserName      = row.IsusernameNull() ? String.Empty : row.username;
                this.m_bIsSmsSent       = row.IsisSmsSentNull() ? (Nullable <Boolean>)null : row.isSmsSent;
                this.m_strEmail         = row.IsemailNull() ? String.Empty : row.email;
                this.m_iEmailTemplateId = row.Isemail_template_idNull() ? (Nullable <Int32>)null : row.email_template_id;
                _rowToSave              = row;
            }
        }