I've set a RowVersion column for my entity but it seems that it isn't storing anything on creates or updates.
it have this configuration in the DbContext OnModelCreating:
modelBuilder.Entity<Author>()
.Property(a => a.RowVersion)
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate();
However, the RowVersion column is always NULL, even after an entity update / create.
By the way, I'm using PostgreSQL with the Npgsql Library (NuGet). In the docs, it says that PostgreSQL doesn't support computed values on add or update
Is it the reason why it doesn't work?
If so, why could we circumvent this limitation?
Also, I've tested with:
modelBuilder.Entity<Author>().Property<byte[]>("RowVersion")
.HasColumnName(ShadowPropertiesDb.RowVersion)
.IsRowVersion();
It results in the same problem.