Constraints, Keys, and Relationships
摘要
In this chapter, you are going to learn about how you can use Data Annotations and the Fluent API to further constrain your database structures from code. In addition, you’ll look at how you can easily build out some relationships in your models that translate directly into relationships in the database.