Mastering Entity Framework Core 2.0
上QQ阅读APP看书,第一时间看更新

Blog entity

The Blog entity/data model we created using the Code First approach is displayed as follows:

    public class Blog
{
public int Id { get; set; }
public string Url { get; set; }
public ICollection<Post> Posts { get; set; }
}

We will be using the Blog model to understand the following:

  • Principal entity
  • Principal key
  • Navigational property