2 // System.Data.IDataRecord.cs
5 // Christopher Podurgiel (cpodurgiel@msn.com)
13 /// Provides access to the column values within
14 /// each row for a DataReader, and is implemented by .NET data
15 /// providers that access relational databases.
17 public interface IDataRecord
19 bool GetBoolean(int i);
23 long GetBytes(int i, long fieldOffset, byte[] buffer,
24 int bufferOffset, int length);
28 long GetChars(int i, long fieldOffset, char[] buffer,
29 int bufferOffset, int length);
31 IDataReader GetData(int i);
33 string GetDataTypeName(int i);
35 DateTime GetDateTime(int i);
37 decimal GetDecimal(int i);
39 double GetDouble(int i);
41 Type GetFieldType(int i);
43 float GetFloat(int i);
47 short GetInt16(int i);
53 string GetName(int i);
55 int GetOrdinal(string name);
57 string GetString(int i);
59 object GetValue(int i);
61 int GetValues(object[] values);
67 object this[string name]{get;}
69 object this[int i]{get;}