I have this table:
Code: Select all
CREATE TABLE Test (ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, Val INTEGER);
Code: Select all
DataSet ds = new DataSet();
SQLiteDataAdapter da = new SQLiteDataAdapter("SELECT ID, Val FROM Test", conn);
da.FillSchema(ds, SchemaType.Mapped, "Test");
da.Fill(ds, "Test");
In my mind, this isn't supposed to happen. It should be true since I expressly created the column as AUTOINCREMENT.
I know that SQLite is capable of doing autoincrement in another way but that doesn't seem to be compatible with generic DataSets.
I cannot use a typed DataSet in this case so that's not a viable option.
I'm running dotConnect for SQLite v.3.60.258.0
And by the way, I've compared this result with the results of a similar test using the provider from System.Data.SQLite and that implementation returns true as expected so this seems to be an issue with the provider and not the underlying database.