Class Row
Represents a single row of data in a table.
Inheritance
System.Object
Row
Namespace: MySqlX.XDevAPI.Relational
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public class Row
Properties
Item[Int32]
Gets the value of the row at the given index.
Declaration
public object this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The column index to retrieve the value. |
Property Value
Type | Description |
---|---|
System.Object | The value at the index. |
Item[String]
Gets a string based indexer into the row. Returns the value as a CLR type.
Declaration
public object this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The column index to get. |
Property Value
Type | Description |
---|---|
System.Object | The CLR value for the column. |
Methods
GetString(String)
Gets the value of the column as a string.
Declaration
public string GetString(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the column. |
Returns
Type | Description |
---|---|
System.String | The value of the column as a string. |