Say I have a simple relationship like this:
Table: Media, Columns: Id, Url, MediaTypeId (fk -> MediaType)
Table: MediaType, Columns: Id, Name
Class: Media (Id, Url, Name)
How do I configure Entity Framework (fluent api) to map the Name property directly to the value of the MediaType table?
As long as I know, there is no way to do that. Instead you can access Name property of the MediaType class via Media.MediaType.Name as below