This is my table:
-- Original table schema
CREATE TABLE [SchoolYear] (
[Start] datetime NOT NULL,
[End] datetime NOT NULL,
[Id] integer PRIMARY KEY ON CONFLICT ABORT AUTOINCREMENT NOT NULL
);
My Entity in the EF designer has StoredGeneratedPattern set to Identity OR Compute and datatype is int64.
Everytime I insert a second SchoolYear object I get this error:
An object with the same key is already in the ObjectStateManager...