Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public virtual bool IsEqual(EtlConfiguration <T> config)
        {
            if (config == null)
            {
                return(false);
            }

            var result = Compare(config);

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