Page 1 of 1

EF 4.1 Code First and VARCHAR2 ([size] Char)

Posted: Fri 14 Oct 2011 18:25
by jared
Is there any way to make dotConnect for Oracle create VARCHAR2 columns as VARCHAR2([size] Char) and not VARCHAR([size])?

If we are using multi-byte characters then the MaxLength will not be correct, the EF will validate that it is under the max number of characters, but it might not fit in the database column...

Posted: Wed 19 Oct 2011 16:59
by Shalex
We will investigate the issue and post here about the results.

Posted: Thu 27 Oct 2011 10:51
by Shalex
Changed behaviour: the CHAR and VARCHAR2 columns will be created with the CHAR semantics for EF Code-First CreateDatabase() starting from the next build. We will post here when the corresponding build of dotConnect for Oracle is available for download.

Posted: Fri 11 Nov 2011 17:19
by Shalex
New build of dotConnect for Oracle 6.50.244 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=22547 .