Beispiel #1
0
        private void FixupETLExportDefinition(ETLExportDefinition previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.ETLExportSchedule, this))
            {
                previousValue.ETLExportSchedule = null;
            }

            if (ETLExportDefinition != null)
            {
                ETLExportDefinition.ETLExportSchedule = this;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Get a configured ETL Export for a particular Export Guid
        /// </summary>
        public ETL.Contracts.ETLExportDefinition GetETLExportByExportGUID(Guid exportGUID)
        {
            try
            {
                ETLExportDefinition export = (from e in dataContext.ETLExportDefinitions
                                              where e.ETLExportGUID == exportGUID
                                              select e).FirstOrDefault();

                return(DataTransform.ToETLExportDefinitionContract(export));
            }
            catch (Exception ex)
            {
                throw HandleException(ex);
            }
        }
Beispiel #3
0
        private void FixupETLExportDefinition(ETLExportDefinition previousValue)
        {
            if (previousValue != null && previousValue.ETLExportTablesDefinitions.Contains(this))
            {
                previousValue.ETLExportTablesDefinitions.Remove(this);
            }

            if (ETLExportDefinition != null)
            {
                if (!ETLExportDefinition.ETLExportTablesDefinitions.Contains(this))
                {
                    ETLExportDefinition.ETLExportTablesDefinitions.Add(this);
                }
                if (ETLExportGUID != ETLExportDefinition.ETLExportGUID)
                {
                    ETLExportGUID = ETLExportDefinition.ETLExportGUID;
                }
            }
        }
Beispiel #4
0
 public static DataContracts.ETLExportDefinition ToETLExportDefinitionContract(DataRows.ETLExportDefinition row)
 {
     return(AutoMapper.Mapper.Map <DataContracts.ETLExportDefinition>(row));
 }