GetDataTypeName() public method

public GetDataTypeName ( int columnIndex ) : String
columnIndex int
return String
		public void SetUp()
		{
			Exception exp = null;
			BeginCase("Setup");
			try
			{
				con = new OracleConnection(MonoTests.System.Data.Utils.ConnectedDataProvider.ConnectionString);
				cmd = new OracleCommand("Select EmployeeID From Employees Where FirstName = 'Oved'",  con);
				cmd.CommandType = CommandType.Text;
				con.Open();

				rdr = cmd.ExecuteReader();
				rdr.Read();

				typeName = rdr.GetDataTypeName(0);
				con.Close();
			}
			catch(Exception ex){exp = ex;}
			finally	{EndCase(exp);}
		}
示例#2
0
 public override string GetDataTypeName(int ordinal)
 {
     return(rdr.GetDataTypeName(ordinal));
 }