I have a SQL Server 2008 database that contains DateTimeOffset objects. As per this page,
SQL Server Compact provides support for replicating the new data types in SQL Server 2008 such as date, time, datetime2, datetimeoffset, geography, and geometry. The new data types in SQL Server 2008 are mapped to nchar, nvarchar, image, etc. For more information about data types in SQL Server 2008, see Data Types in SQL Server 2008 Books Online Documentation.
However, when I use the Microsoft Sync Framework and try to sync my SQL Server database to a SQL Server Compact database, I get the following error:
No mapping exists from DbType System.DateTimeOffset to a known SqlCeType.
The relevant Microsoft Sync Framework documentation is here. I am on SQL CE 3.5 SP2 and .NET Framework 4.0.
I'm kind of lost here. What am I doing wrong?