Data type mapping

39 views
Skip to first unread message

Sérgio Barros

unread,
May 21, 2015, 6:28:48 AM5/21/15
to npgsq...@googlegroups.com

I am using npgsql latest version and EF 6 and when creating the classes from the datamodel I get a int for Int8 (bigint and bigserial data types).
I expected it to be long as is counter part in sql server for bigint.

Is this data type mapping configurable?
 

Emil Lenngren

unread,
May 21, 2015, 6:56:16 AM5/21/15
to Sérgio Barros, npgsq...@googlegroups.com

Seems like a bug. It should be a long. We'll check this.

--
You received this message because you are subscribed to the Google Groups "Npgsql Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to npgsql-help...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/npgsql-help/0d794cc7-f102-4631-868d-edf89723daf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emil Lenngren

unread,
May 21, 2015, 7:18:20 PM5/21/15
to Sérgio Barros, npgsq...@googlegroups.com
Are you using Code First migrations to create your classes or the Visual Studio DDEX provider GUI?

Sérgio Barros

unread,
May 22, 2015, 4:33:46 AM5/22/15
to Emil Lenngren, npgsq...@googlegroups.com
I am using Database First.

Sérgio Barros

unread,
May 22, 2015, 12:06:38 PM5/22/15
to Emil Lenngren, npgsq...@googlegroups.com
Just redid the creation of the ado, and now it gets the long instead of int. Do not know what happenned before.
Not an issue anymore.
 
Sent: Friday, May 22, 2015 12:18 AM
Subject: Re: [npgsql-help] Data type mapping
 
Reply all
Reply to author
Forward
0 new messages