/// <summary> /// Initializes a new instance of the <see cref="MySqlColumnMapping"/> class. /// </summary> /// <param name="likeMapping">A <see cref="MySqlColumnMapping"/> object from which to clone the mapping structure data.</param> public MySqlColumnMapping(MySqlColumnMapping likeMapping) : this(likeMapping, likeMapping.SourceColumns, likeMapping.TargetColumns) { for (int idx = 0; idx < likeMapping.MappedSourceIndexes.Length; idx++) { MappedSourceIndexes[idx] = likeMapping.MappedSourceIndexes[idx]; } }
/// <summary> /// Initializes a new instance of the <see cref="MySqlColumnMapping"/> class. /// </summary> /// <param name="likeMapping">A <see cref="MySqlColumnMapping"/> object from which to clone the mapping structure data.</param> /// <param name="newSourceColNames">An array of column names in the source Excel data range.</param> /// <param name="newTargetColNames">An array of column names in the target MySQL table.</param> public MySqlColumnMapping(MySqlColumnMapping likeMapping, string[] newSourceColNames, string[] newTargetColNames) : this(likeMapping.Name, newSourceColNames, newTargetColNames) { SchemaName = likeMapping.SchemaName; TableName = likeMapping.TableName; ConnectionName = likeMapping.ConnectionName; Port = likeMapping.Port; }