I am using Entity Framework Core 3.0 code. How do I add descriptions for columns in entity configuration classes or migrations so that they end up as a column description in SQL Server?
There is a publication for Entity Framework 4.3.1 but I could not do it in the Entity Framework Core.
You can use HasComment fluent API:
modelBuilder.Entity<MyEntity>()
.Property(e => e.MyProperty)
.HasComment("My Column Description");
For SqlServer this is mapped to the corresponding table column description.