Like the title says, I'm getting a error message while I try to update a entity in EF Core.
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.