was not able to found a settings or any other way to fix this by myself, so asking for help:
I have TIMESTAMP field in the mysql db with default precision (which is 0 according to mysql docs).
When code is generated from model it has no ".HasPrecision(0)" call for this db field in the mapping method. This seems to cause error:
Error raised when there at least 2 calls of dbContext.SaveChanges() during ONE second when there only TIMESTAMP field is changed. As I understand, MySql does not update the db because timestamp value did not change, but ef.core is"Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s)"
expecting 1 affected record.
The TIMESTAMP(X) fields has no such issue because ".HasPrecision(X)" is generated.