MySQL "Create From Existing Database" UInt32 = Int64

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
lc4pro
Posts: 51
Joined: Thu 12 Jul 2012 08:16

MySQL "Create From Existing Database" UInt32 = Int64

Post by lc4pro » Mon 23 Dec 2013 00:15

Dear support,

I am facing an issue when creating entities from an existing MySQL Database, where the server data type is being picked up correctly as "INT(10) UNSIGNED NOT NULL", however the system type created for the entity is System.Int64, which is incorrect.

I am using the latest version, at the time of writing, 4.4.393

Please can you assist with this anomaly

Regards

Les Brinkworth

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: MySQL "Create From Existing Database" UInt32 = Int64

Post by MariiaI » Mon 23 Dec 2013 14:07

Unsigned int is mapped to long(System.Int64) by default. Please refer to:
http://www.devart.com/linqconnect/docs/ ... pping.html

You can change the default mapping with these steps:
- open Tools -> Entity Developer -> Options -> Server Options -> MySQL;
- set the .NET type you want to use for the Server Type 'UNSIGNED INT';
- make another changes in the mapping if necessary;
- click 'OK' to save the changes;
- recreate your model.

Please tell us if this helps.

lc4pro
Posts: 51
Joined: Thu 12 Jul 2012 08:16

Re: MySQL "Create From Existing Database" UInt32 = Int64

Post by lc4pro » Tue 24 Dec 2013 22:25

Dear Support,

Thank you for the reply. Your suggestion has resolved the issue.

Regards

Les

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: MySQL "Create From Existing Database" UInt32 = Int64

Post by MariiaI » Wed 25 Dec 2013 06:16

Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.

Post Reply