Already have a problem with create database from code and from Entity Developer, but now with PostgreSQL.
System info:
When create database from Entity Developer:PostgreSQL 9.3.3 (2014-02-20) x64
Windows 7 x64 Pro Ru
Code: Select all
-- Table: "SysInfos"
-- DROP TABLE "SysInfos";
CREATE TABLE "SysInfos"
(
"SysInfoId" serial NOT NULL,
"DBVersion" integer NOT NULL,
"DTChange" timestamp without time zone NOT NULL,
"MetrologyIdentification" character varying NOT NULL,
"RefVersion" integer NOT NULL,
"SoftVersion" integer NOT NULL,
"TimeOfUse" character varying NOT NULL,
CONSTRAINT "PK_SysInfos" PRIMARY KEY ("SysInfoId")
)
WITH (
OIDS=FALSE
);
ALTER TABLE "SysInfos"
OWNER TO postgres;
Code: Select all
-- Table: "SysInfos"
-- DROP TABLE "SysInfos";
CREATE TABLE "SysInfos"
(
sysinfoid serial NOT NULL,
dbversion integer NOT NULL,
dtchange timestamp without time zone NOT NULL,
metrologyidentification character varying NOT NULL,
refversion integer NOT NULL,
softversion integer NOT NULL,
timeofuse character varying NOT NULL,
CONSTRAINT "PK_SysInfos" PRIMARY KEY (sysinfoid)
)
WITH (
OIDS=FALSE
);
ALTER TABLE "SysInfos"
OWNER TO postgres;
PostgreSQL is case-insensitive!"SysInfoId" vs sysinfoid
For code:
Code: Select all
var sysInfos = _dataContext.SysInfos.FirstOrDefault();
Code: Select all
SELECT t1."SysInfoId", t1."DBVersion", t1."DTChange", t1."MetrologyIdentification", t1."RefVersion", t1."SoftVersion", t1."TimeOfUse"
FROM "SysInfos" t1 LIMIT 1
2) Moreover it would be good specify a schema before names of tables and fields.
Code: Select all
SELECT
"public"."SysInfos".sysinfoid,
"public"."SysInfos".dbversion,
"public"."SysInfos".dtchange,
"public"."SysInfos".metrologyidentification,
"public"."SysInfos".refversion,
"public"."SysInfos".softversion,
"public"."SysInfos".timeofuse
FROM
"public"."SysInfos"
In addition put my screenshot:
Link to full image

This for me is a very important issue please fix as soon as possible.
Thanks.