SQLite and EF Store Generated Pattern Problem
Posted: Thu 08 Sep 2011 08:35
Hi,
I am new to the SQLite EF provider so this may be simple to answer!
I am generating a model from an existing SQLite database.
For the primary keys on the tables, the wizard is setting the Store Generated Pattern = "Identity".
However, I would like the default value to be "None" instead as we have a separate function within the application code that sets the primary key values for us.
Is it possible to change this default somewhere?
At the moment, each time we recreate/update the model from the Database these values are being overwriten to "Identity" again.
Regards,
Shaun Harvey
I am new to the SQLite EF provider so this may be simple to answer!
I am generating a model from an existing SQLite database.
For the primary keys on the tables, the wizard is setting the Store Generated Pattern = "Identity".
However, I would like the default value to be "None" instead as we have a separate function within the application code that sets the primary key values for us.
Is it possible to change this default somewhere?
At the moment, each time we recreate/update the model from the Database these values are being overwriten to "Identity" again.
Regards,
Shaun Harvey