MVC EF - Update navigation property
问题 You can see my database diagram below. Post.cs public partial class Post { public Post() { this.PostImages = new HashSet<PostImage>(); this.PostMappings = new HashSet<PostMapping>(); } public int ID { get; set; } public string Title { get; set; } public string TitleMenu { get; set; } public string Preview { get; set; } public string Content { get; set; } public Nullable<bool> Visible { get; set; } public Nullable<int> Display { get; set; } public Nullable<System.DateTime> DateAdded { get; set