MaxLength not set to match DB table
Posted: Fri 07 Jan 2011 23:15
I have a table in Oracle that looks like this:
I am using VS 2010, Entity Framework 4, the Microsoft tool "ADO.NET Entity Data Model Designer". When I select "Update Model from Database..", the values of the MaxLength for the VARCHAR columns are not correct (except one column *is* correct!). Here is a view of the SSDL section for this entity:
Do you know why the MaxLength values do not match the DB table? -- except for the TRANSLATION_COMMENT, which is correct at 200.
Code: Select all
CREATE TABLE "MIL"."EO_ORDER"
( "EO_ORDERID" NUMBER(38,0) NOT NULL ENABLE,
"EO_ORDERTYPEID" NUMBER(38,0) NOT NULL ENABLE,
"SECONDARYTYPE" VARCHAR2(255 CHAR),
"EXTERNALORDERID" VARCHAR2(255 CHAR),
"EXTERNALCOMMENT" VARCHAR2(4000 BYTE),
"USERNAME_REQUESTEDBY" VARCHAR2(255 CHAR) NOT NULL ENABLE,
"USERNAME_REQUESTEDFOR" VARCHAR2(255 CHAR),
"CREATETIME" DATE DEFAULT SYSDATE,
"TIMEOUT" DATE,
"TIMEOUTACTION" VARCHAR2(255 CHAR),
"TEMPLATE" NUMBER(1,0) DEFAULT 0,
"ORDER_VALID" NUMBER(1,0) DEFAULT NULL,
"TRANSLATION_COMMENT" VARCHAR2(200 BYTE),
...
Code: Select all
Do you know why the MaxLength values do not match the DB table? -- except for the TRANSLATION_COMMENT, which is correct at 200.