Ejemplo n.º 1
0
 /// <summary>
 /// Gets the index of the column with the given name.
 /// </summary>
 /// <param name="name">The name of the column..</param>
 /// <returns>The index of the column with the given name.</returns>
 public int GetOrdinal(string name)
 {
     GetSchema();
     return(columns.GetOrdinal(name));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the index of the column with the given name.
 /// </summary>
 /// <param name="columnName">The name of the column to get the index for.</param>
 /// <returns>The index of the column with the given name -or- -1 if the name is not found.</returns>
 public int GetOrdinal(string columnName)
 {
     return(definitions.GetOrdinal(columnName));
 }