Like the title says, I'm getting a error message while I try to update a entity in EF Core.
Here's the entity that I'm trying to update. Pay attention to the Index property tha's decorated with the Databasegenerated attribute.
I tried to decorate wthe property so a value would only be generated when a new entity is added, but without success.
Regarding to this link: http://ef.readthedocs.io/en/latest/modeling/generated-properties.html#value-generated-on-add
And finally the update method looks like this:
What am I doing wrong here?
For those who run into this, it was a bug with EF Core 1.0. See https://github.com/aspnet/EntityFramework/issues/6426.
It has been marked as fixed in EF Core 1.2.