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