create type some_type (
field1 integer,
field2 varchar(20),
field3 float8
);
creae function some_function()
returns as setof some_type as ....
Entitty develeoper generates code
[Column(Name = @"field3", Storage = "_Field3", DbType = "DOUBLE")]
public System.Nullable Field3
and postgresql does not have type named "double"
entity developer version 3.20.104
DbType = DOUBLE problem
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Thank you for the report, we have reproduced the problem with the complex type. We will inform you when it is fixed.
As for the second issue, do you mean that you've added a method with a System.Double parameter to the model, and mapping synchronization set the DbType property of this parameter to 'double precision'? This is the expected behaviour; if you are encountering any problems with it, could you please descrive them in details?
As for the second issue, do you mean that you've added a method with a System.Double parameter to the model, and mapping synchronization set the DbType property of this parameter to 'double precision'? This is the expected behaviour; if you are encountering any problems with it, could you please descrive them in details?
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Could you please describe the situation in more details? I.e., please specify
- the exact way you've added a double parameter to the function;
- at which moment did the 'double precision' server type appeared;
- what were the situations when the 'float8' type was generated instead.
JIC: 'float8' and 'double precision' are synonyms and represent the same PostgreSQL data type.
- the exact way you've added a double parameter to the function;
- at which moment did the 'double precision' server type appeared;
- what were the situations when the 'float8' type was generated instead.
JIC: 'float8' and 'double precision' are synonyms and represent the same PostgreSQL data type.