Attribute Type for PostgreSQL oid column with EF6

1

What kind of attribute should I use to represent a column type oid of PostgreSQL with Entity Framework 6 Code-First?

Remembering that PostgreSQL's oid type is for storing files.

    
asked by anonymous 24.05.2016 / 16:27

2 answers

1

As described in the text below:

  

No support for unsigned integer properties (and confusing error   message)

Referral site CodePlex Page - No support for unsigned integer properties , no support for uint on Entity Framework .

Which solution: use int

answers here , reinforcing.

    
24.05.2016 / 17:35
2

According to the Npgsql provider documentation (I imagine it is the one you are using) the type is uint . Because EF is not supported on unlabeled types, then use int itself. Or change ORM: P

    
24.05.2016 / 16:49