StoreGeneratedPattern = Identity being reset

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
temelvin
Posts: 7
Joined: Fri 31 Jan 2014 03:01

StoreGeneratedPattern = Identity being reset

Post by temelvin » Thu 13 Mar 2014 17:29

I understand that I have to manually set StoreGeneratedPattern = Identity for my identity columns based on the following from documentation :

"the users have to set the value of StoreGeneratedPattern manually in the model editor."

How do you keep this from being reset when updating the model from the database ?

1. Create a model from database
2. Set StoreGeneratedPattern = Identity for my primary key (backed by trigger / sequence)
3. All is good. :D
4. Run update model from database.
5. Changes are detected
6. Accept changes.
7. The previously set StoreGeneratedPattern = Identity is reset :(

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: StoreGeneratedPattern = Identity being reset

Post by Shalex » Fri 14 Mar 2014 17:59

temelvin wrote:How do you keep this from being reset when updating the model from the database ?
You should clear selection of the corresponding change in Update Model From Database only once. Entity Developer will remember this choice for the next runs of the wizard.

Post Reply