When is the StoreGeneratedPattern attribute added to a property in the ssdl? (Entity Framework)

828 Views Asked by At

When I create a new diagram and "Update model from database", the StoreGeneratedPattern attribute gets added to some primary key properties, but not all of them. What criteria does the designer use to decide whether to add this or not?

1

There are 1 best solutions below

0
On BEST ANSWER

I found that it was because my database was not consistent. It appears to add the attribute to any primary key that is an identity column.