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

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
jared
Posts: 10
Joined: Wed 12 Oct 2011 22:12

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

Post by jared » Fri 14 Oct 2011 18:25

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...

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 19 Oct 2011 16:59

We will investigate the issue and post here about the results.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 27 Oct 2011 10:51

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 11 Nov 2011 17:19

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 .

Post Reply