EF4: Wrong Mapping for Column Number(10,0)

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Sebastian Gebhardt
Posts: 1
Joined: Sat 04 Sep 2010 08:59

EF4: Wrong Mapping for Column Number(10,0)

Post by Sebastian Gebhardt » Sat 04 Sep 2010 09:22

I use the dotConnect for Oracle with Entity Framework 4.

I have a Table with Column DataType "Number(10,0)". If I create the Model from this Table, this Column get the Type Int64 instead of Int32.
But if a change the ColumnType to "Number(9,0) the created Model get the right Type.


Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 06 Sep 2010 13:44

Actually, NUMBER(10, 0) can contain values too large for CLR Int32 data type, so the default mapping should use Int64.
The full table of type mappings is available here.

Post Reply