Exemplo n.º 1
0
 internal static void FillPropertiesNamesHashTable(DataTable table, Hashtable hash, int startColumn)
 {
     if (table == null || hash == null)
     {
         return;
     }
     hash.Clear();
     for (int i = startColumn; i < table.Columns.Count; i++)
     {
         DataColumn dataColumn = table.Columns[i];
         if (!dataColumn.ExtendedProperties.ContainsKey("MemberPropertyUnqualifiedName"))
         {
             dataColumn.ExtendedProperties["MemberPropertyUnqualifiedName"] = AdomdUtils.UnQualifyPropertyName(dataColumn.Caption);
         }
         string key = dataColumn.ExtendedProperties["MemberPropertyUnqualifiedName"] as string;
         if (hash[key] == null)
         {
             hash[key] = i;
         }
     }
 }