Hi Adam,
In ADO.NET the "String" CLR type is considered a Unicode string, which is then
interpreted as an nvarchar database type. So DevForce is just allowing this
default to occur. You can work around the problem with a
custom "AdoProviderHelper" which will allow you to take control of the database
type.
If you're using the SQLOLEDB
provider you can implement the helper like this:
public class SampleProviderHelper :
OleDbProviderHelper {
public override
DbType
MapDbParameterType(DbType pDbType) {
return pDbType ==
DbType.String ? DbType.AnsiString : pDbType;
}
}
If you're using the SQLClient provider you'd instead subclass the SqlServerProviderHelper class:
public class
SampleProviderHelper : SqlServerProviderHelper {.. }
Both
OleDbProviderHelper and SqlServerProviderHelper are defined in
IdeaBlade.Rdb.
For DevForce to find
your custom implementation be sure that the assembly it's in is defined as a
probe assembly for the RdbKey.