예제 #1
0
 public void Remove(TargetElement details)
 {
     if (BaseIndexOf(details) >= 0)
     {
         BaseRemove(details.Name);
     }
 }
예제 #2
0
        private static TargetBase CreateFileTarget(TargetElement targetElement)
        {
            var target = new FileTarget
            {
                Path = targetElement.Path,
                DataType = GetTargetDataType(targetElement.Data),
                Name = targetElement.Name,
                Type = targetElement.Type,
                Parameters =
                    targetElement.Parameters.Cast<ParameterElement>()
                        .ToDictionary(param => param.Name, param => param.Value)
            };

            return target;
        }
예제 #3
0
        private static TargetBase CreateDatabaseTarget(TargetElement targetElement)
        {
            var target = new DatabaseTarget
            {
                CommandText = targetElement.CommandText,
                ConnectionString = ConfigurationManager.ConnectionStrings[targetElement.ConnectionStringName].ConnectionString,
                DataType = GetTargetDataType(targetElement.Data),
                Name = targetElement.Name,
                Type = targetElement.Type,
                Parameters =
                    targetElement.Parameters.Cast<ParameterElement>()
                        .ToDictionary(param => param.Name, param => param.Value)
            };

            return target;
        }
예제 #4
0
 public void Add(TargetElement details)
 {
     BaseAdd(details);
 }
예제 #5
0
 public int IndexOf(TargetElement details)
 {
     return(BaseIndexOf(details));
 }
예제 #6
0
 public void Remove(TargetElement details)
 {
     if (BaseIndexOf(details) >= 0)
         BaseRemove(details.Name);
 }
예제 #7
0
 public int IndexOf(TargetElement details)
 {
     return BaseIndexOf(details);
 }
예제 #8
0
 public void Add(TargetElement details)
 {
     BaseAdd(details);
 }