DotNetFirebird.org DotNetFirebird
Using Firebird SQL in .NET.

Firebird and .NET Framework Data Types Mapping

Here is the mapping of Firebird data types to .NET Framework data types.

Use the specified FbDataReader method to read the data from a given column.

Firebird type .NET type FbDataReader method Example
BIGINT System.Int64 GetInt64() BIGINT Reading Example (C#)
BLOB System.Byte[] GetBytes() BLOB Reading Example (C#) 
BLOB SUB_TYPE 1 System.String GetString() BLOB SUB_TYPE 1 Reading Example (C#) 
CHAR System.String GetString() CHAR Reading Example (C#) 
DATE System.DateTime GetDateTime() DATE Reading Example (C#) 
DECIMAL System.Decimal GetDecimal() DECIMAL Reading Example (C#) 
DOUBLE PRECISION System.Double GetDouble() DOUBLE PRECISION Reading Example (C#) 
FLOAT System.Float GetFloat() FLOAT Reading Example (C#) 
INTEGER System.Int32 GetInt32() INTEGER Reading Example (C#) 
NUMERIC System.Decimal GetDecimal() NUMERIC Reading Example (C#) 
SMALLINT System.Int16 GetInt16() SMALLINT Reading Example (C#) 
TIME System.DateTime GetDateTime() TIME Reading Example (C#)
TIMESTAMP System.DateTime GetDateTime() TIMESTAMP Reading Example (C#) 
VARCHAR System.String GetString() VARCHAR Reading Example (C#)