How to add your knowledge

Physical to Logical Schema Mapping

    Table of contents
    No headers

    When FDO describes the schema of an existing table that was not created by the ApplySchema command, it maps native data types to FDO data types. This mapping is described here.

    The name of the schema is the concatenation of ‘Fdo’ and the name of the database. This is the database created using the ‘CREATE DATABASE’ command and containing the existing table(s). The table names are the class names, and the column names are the property names.

    Note

    The length of a bit field is in the range 1-64. A row in a column of type bit(64) can hold 64 bit values.

    Note

    The following native types are not mapped to FDO data types: float, float unsigned, real unsigned, double unsigned, binary, varbinary, tinyblob, blob, mediumblob, longblob, tinytext, mediumtext, and longtext.

    Native TypeDefaultsFDO Data Type
    bit(length = 1Boolean
    bit(2)   Byte
    bit(64)   Int64
    tinyintlength = 4Int16
    tinyint unsignedlength = 3Byte
    smallintlength = 6Int16
    smallint unsignedlength = 5Int32
    mediumintlength = 9Int32
    mediumint unsignedlength = 8Int32
    intlength = 11Int32
    int unsignedlength = 10Int64
    bigintlength = 20Int64
    bigint unsignedlength = 20Int64
    real   Double
    double   Double
    numericprecision = 10; scale = 0Decimal (precision = 10; scale = 0)
    numeric unsignedprecision = 10; scale = 0Decimal (precision = 10; scale = 0)
    date   DateTime
    datetime   DateTime
    timestamp   DateTime
    year   Int32
    char(64)   String (length = 192)
    varchar(64)   String (length = 192)
    enum   String
    set   String