Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }