Exemple #1
0
        public virtual bool IsEqual(EtlConfiguration <T> config)
        {
            if (config == null)
            {
                return(false);
            }

            if (config.Transforms.Count != Transforms.Count)
            {
                return(false);
            }

            var localTransforms  = Transforms.OrderBy(x => x.Name);
            var remoteTransforms = config.Transforms.OrderBy(x => x.Name);

            using (var localEnum = localTransforms.GetEnumerator())
                using (var remoteEnum = remoteTransforms.GetEnumerator())
                {
                    while (localEnum.MoveNext() && remoteEnum.MoveNext())
                    {
                        if (localEnum.Current.IsEqual(remoteEnum.Current) == false)
                        {
                            return(false);
                        }
                    }
                }

            return(config.ConnectionStringName == ConnectionStringName &&
                   config.Name == Name &&
                   config.MentorNode == MentorNode &&
                   config.Disabled == Disabled);
        }
Exemple #2
0
        public virtual bool IsEqual(EtlConfiguration <T> config)
        {
            if (config == null)
            {
                return(false);
            }

            var result = Compare(config);

            return(result == EtlConfigurationCompareDifferences.None);
        }
Exemple #3
0
 public AddEtlCommand(EtlConfiguration <T> configuration)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Exemple #4
0
 public AddEtlOperation(EtlConfiguration <T> configuration)
 {
     _configuration = configuration;
 }
 public UpdateEtlCommand(DocumentConventions conventions, long taskId, EtlConfiguration <T> configuration)
 {
     _conventions   = conventions;
     _taskId        = taskId;
     _configuration = configuration;
 }
 public UpdateEtlOperation(long taskId, EtlConfiguration <T> configuration)
 {
     _taskId        = taskId;
     _configuration = configuration;
 }
 public UpdateEtlCommand(long taskId, EtlConfiguration <T> configuration)
 {
     _taskId        = taskId;
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Exemple #8
0
 public AddEtlCommand(DocumentConventions conventions, EtlConfiguration <T> configuration)
 {
     _conventions   = conventions;
     _configuration = configuration;
 }
Exemple #9
0
 internal EtlConfigurationCompareDifferences Compare(EtlConfiguration <T> config, List <(string TransformationName, EtlConfigurationCompareDifferences Difference)> transformationDiffs = null)