All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SQLite Data Types Mapping

XPO creates these column types when updating the SQLite database schema and expects them in existing databases.

.NET Type Database Column Type
Boolean bit
Byte tinyint
SByte numeric(3,0)
Char nchar(1)
Decimal money
Double double
Single float
Int16 smallint
UInt16 numeric(5,0)
Int32 int
UInt32 numeric(10,0)
Int64 numeric(20,0)
UInt64 numeric(20,0)
Guid char(36)
String nvarchar
DateTime datetime
TimeSpan double
Byte[] image
Unlimited size string text

Mapping Properties To Database Column Types Not Supported By Default

If a column type is not listed in the above table but can be converted to any of the listed type by the database, it can be read and modified by XPO. To create a column of a specific type in the database when updating the schema, decorate the property with DbTypeAttribute. If a column type cannot be converted to a supported type, it is possible to support such columns by creating a custom connection provider. Here are some examples:

See Also