对于这堂课:
public class Movie {
public int MovieId { get; set; }
public string Title { get; set; }
public int Rating { get; set; }
public int ProducerID { get; set; }
public Producer Producer { get; set; }
}
我只想知道当Entity Framework将此类映射到相应的数据库表时,哪一个将用作主键?
哪一个是外键?