MySqlSharp.Provider.ClientAPI
Class Field

The structure representing a mySql Field.

Field Summary
uint Decimals
        The number of decimals for numeric fields.
string Def
        The default value of this field. This is set only if you use MySqlSharp.Provider.ClientAPI.MySql.FetchFields(System.IntPtr).
MySqlSharp.Provider.ClientAPI.FieldType FieldTypes
        The type of the field.
MySqlSharp.Provider.ClientAPI.FieldFlags Flags
        Different bit-flags for the field.
uint Length
        The width of the field, as specified in the table definition.
uint MaxLength
        The maximum width of the field for the result set (the length of the longest field value for the rows actually in the result set).
string Name
        The name of the field
string Table
        The name of the table containing this field, if it isn't a calculated field. For calculated fields, this value is an empty string.

Constructor Summary
Field()
        Initializes a new instance of the Field class.

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

Decimals

public uint Decimals

The number of decimals for numeric fields.


Def

public string Def

The default value of this field. This is set only if you use MySqlSharp.Provider.ClientAPI.MySql.FetchFields(System.IntPtr).


FieldTypes

public MySqlSharp.Provider.ClientAPI.FieldType FieldTypes

The type of the field.


Flags

public MySqlSharp.Provider.ClientAPI.FieldFlags Flags

Different bit-flags for the field.


Length

public uint Length

The width of the field, as specified in the table definition.


MaxLength

public uint MaxLength

The maximum width of the field for the result set (the length of the longest field value for the rows actually in the result set).

If you use MySqlSharp.Provider.ClientAPI.MySql.StoreResult(System.IntPtr), this contains the maximum length for the field. If you use MySqlSharp.Provider.ClientAPI.MySql.UseResult(System.IntPtr), the value of this variable is zero.


Name

public string Name

The name of the field


Table

public string Table

The name of the table containing this field, if it isn't a calculated field. For calculated fields, this value is an empty string.

Constructor Detail

Field

public Field()

Initializes a new instance of the Field class.