hi Carlos

.NetProvider 1.7, VS 2005B2

I have the following code:
the Connection class which reads configuration xml file and contain all 
elements needed by FbConnectionStringBuilder;
among other things there is a follwoing property
    FbCharset Charset;

which is asigned by default with Charset = FbCharset.Windows1250;

FbConnectionStringBuilder stringBuilder;
stringBuilder = new FbConnectionStringBuilder();
stringBuilder.Charset = this.Connection.Charset.ToString();
stringBuilder.Database = this.Connection.Database;
stringBuilder.DataSource = this.Connection.DataSource;
stringBuilder.Dialect = this.Connection.Dialect;
stringBuilder.UserID = this.User;
stringBuilder.Password = this.Password;
this.connectionString = stringBuilder.ConnectionString;

this generate the string that contains following piece: "charset = 
Windows1250"
this isn't recognized as the engine recognize only WIN1250

I am not sure how this works with IsolationLevel enumerations (haven't 
tested it)

but to overcome this you either need to implement CharsetEnum property in 
StringBuilder or (better IMO) change the Enum options to fit those 
acceptable by engine.

CUIN Kaczy 




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to