Note: this question is referencing an old EF Core issue. See this answer for a discussion relevant to EF Core 5.
I'm seeing conflicting information about this. LearnEntityFrameworkCore.com says you can write
.HasComputedColumnSql("GetUtcDate()");
The value of the column is generated by the database's GetUtcDate() method whenever the row is created or updated
However, in the technet documentation for computed columns on SQL Server it says:
Their values are recalculated every time they are referenced in a query.