- Mastering Entity Framework Core 2.0
- Prabhakaran Anbazhagan
- 60字
- 2021-07-02 21:16:42
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
推薦閱讀