dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

Mention that column names can be controlled via the Column attribute #3139

Open Eirenarch opened 3 years ago

Eirenarch commented 3 years ago

The article states that developers can use HasColumnName to change the default naming of owned entities. It would be beneficial to add that we can also use the Column attribute to control the name. Some people prefer to control these things via attributes and the article as it is makes it sound as if the only supported way is the configuration method


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

roji commented 3 years ago

This is already documented in the entity properties page - but this specific sample could indeed have Data Annotation/Fluent API tabs as elsewhere.