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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Constraints, Keys, and Relationships

  • Brian Gorman

摘要

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.