Entity framework support
Entity framework support
Hello,
I am trying SQLite to generate an edmx file, but keep getting an message that Datatype Integer is not supported, i also tried to change the type to int32, but that does not work either.
This is the message:
Message: The data type 'int32' is not supported, the column 'ID' in table 'main.Eenheid' was excluded.
Error Code: 6031
Severity: Warning
Or:
Message: The data type 'integer' is not supported, the column 'ID' in table 'main.Eenheid' was excluded.
Error Code: 6031
Severity: Warning
Reproduction:
Create an new SQlite database, add an new table with an ID column and a text column and make the ID column the primary key.
Then startup the SQLiteEdmWizard and try to generate the edmx file. the Integer columns are not generated.
Regards
I am trying SQLite to generate an edmx file, but keep getting an message that Datatype Integer is not supported, i also tried to change the type to int32, but that does not work either.
This is the message:
Message: The data type 'int32' is not supported, the column 'ID' in table 'main.Eenheid' was excluded.
Error Code: 6031
Severity: Warning
Or:
Message: The data type 'integer' is not supported, the column 'ID' in table 'main.Eenheid' was excluded.
Error Code: 6031
Severity: Warning
Reproduction:
Create an new SQlite database, add an new table with an ID column and a text column and make the ID column the primary key.
Then startup the SQLiteEdmWizard and try to generate the edmx file. the Integer columns are not generated.
Regards
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
I used SQLite Enterprise manager to convert an MsSQL database to SQLite, This is the create statement it uses:
Code: Select all
CREATE TABLE Eenheid
-- This table created by SQLite2008 Pro Enterprise Manager
-- Osen Kusnadi - http://www.osenxpsuite.net
-- Created date: 2008-04-19 21:20:01
(
ID INTEGER,
Omschrijving TEXT,
PRIMARY KEY (ID)
);
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Try using this script or
The INTEGER type is split into several subtypes for proper memory management on the client side.
Code: Select all
CREATE TABLE Eenheid
(
ID INT,
Omschrijving TEXT,
PRIMARY KEY (ID)
);
Code: Select all
CREATE TABLE Eenheid
(
ID LONG,
Omschrijving TEXT,
PRIMARY KEY (ID)
);
That works, but gives me an other problem, i need a Primary key with autoincrement enabled. When i try to add this the statement does not work anymore.
SQLite only allows Autoincrement on INTEGER fields.
gives this exception:
SQLite only allows Autoincrement on INTEGER fields.
Code: Select all
CREATE TABLE Eenheid2
(
ID INT PRIMARY KEY AUTOINCREMENT,
Omschrijving TEXT
)
gives this exception:
Code: Select all
---------------------------
SQLiteSpy
---------------------------
SQLite Error 1 - AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY.
---------------------------
OK
---------------------------
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24