I'm using EF Core Code-First and need to set default value for multiple columns.
I know this is the statement for setting default for one column
modelBuilder.Entity<Registration>()
.Property(b => b.AdminFee)
.HasDefaultValue(25);
I have 10 fields with different default values and want to see if there is a short way to set default for all in one shot instead of repeating the above code 10 times.