I have a 3rd party dll that reads from Sql2008 and internally maps VarChar fields to AnsiString.
I want to use the dll with SqlCe which uses NVarChar instead of VarChar ... when a method on the dll is called on a connection to the sdf I get the error:
"No mapping exists from DbType AnsiString to a known SqlDbType"
... understandably it won't automatically be able to convert unicode to the more restrictive ASCII.
Is it possible to map SqlCe DataType.NVarChar to AnsiString?
I did see this, but don't use NHibernate: http://netfrustrations.blogspot.com/2009/10/nhibernate-mapping-typeansistring.html
Thanks.
(FYI: I have been using the dll successfully ... they just changed to AnsiString recently)