Exemple #1
0
 /// <summary>
 /// This function iterates all the attributes in import-from file
 /// and set the OD field name to be IMP_attributeName
 /// </summary>
 public bool SetColumnNames(Column col)
 {
     string colName = col.ColumnName;
     string newFieldName = null;
     newFieldName = string.Concat("IESample_", colName);
     try
     {
         col.SetColumnDataMapping(newFieldName);
     }
     catch (MapImportExportException)
     {
         return false;
     }
     return true;
 }