Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Possible to map DataType being read from SqlCe?

$
0
0

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)


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>