Skip to main content

Microsoft Access Data Types Mapping

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

.NET Type Database Column Type
Boolean bit
Byte byte
SByte short
Char char(1)
Decimal currency
Double double
Single single
Int16 short
UInt16 int
Int32 int
UInt32 decimal(10,0)
Int64 decimal(20,0)
UInt64 decimal(20,0)
Guid guid
String varchar
DateTime datetime
TimeSpan double
Byte[] longbinary
Unlimited size string LONGTEXT

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.

See Also