Beispiel #1
0
 internal SchemaColumn AddColumn(string name, Type t)
 {
   SchemaColumn c = new SchemaColumn();
   c.Name = name;
   c.Type = t;
   columns.Add(c);
   Mapping.Add(name, columns.Count-1);
   LogicalMappings[columns.Count - 1] = columns.Count - 1;
   return c;
 }
Beispiel #2
0
        internal SchemaColumn AddColumn(string name, Type t)
        {
            SchemaColumn c = new SchemaColumn();

            c.Name = name;
            c.Type = t;
            columns.Add(c);
            Mapping.Add(name, columns.Count - 1);
            LogicalMappings[columns.Count - 1] = columns.Count - 1;
            return(c);
        }
Beispiel #3
0
        internal int ColumnIndex(string name)
        {
            int index = -1;

            for (int i = 0; i < columns.Count; i++)
            {
                SchemaColumn c = columns[i];
                if (String.Compare(c.Name, name, StringComparison.OrdinalIgnoreCase) != 0)
                {
                    continue;
                }
                index = i;
                break;
            }
            return(index);
        }