Can you customise foreign key names in self referencing entities in entity framework?
问题 Some of the entities in my application have 4 audit properties on them: public virtual DateTime WhenAdded { get; set; } public virtual DateTime? WhenUpdated { get; set; } public virtual User AddedBy { get; set; } public virtual User UpdatedBy { get; set; } I am using a code first approach and have the following extension method to map the user properties: public static void MapAuditFields<T>(this EntityTypeConfiguration<T> configuration) where T : class, IAuditable { configuration.HasOptional