.HasPrincipalKey -> Specify different column name
I need to use
.HasPrincipalKey
in Fluent, but I need the resulting column to be named differently from what the Fluent API wants to use. I don't see an option to override the column name to something different?2 Replies
.HasColumnName("the name u want to use")
https://learn.microsoft.com/en-us/ef/core/modeling/entity-properties?tabs=fluent-api%2Cwithout-nrt#column-names
not sure u can name the FK thou