Abstract
In this chapter, we are going to learn about how we can use data annotations to further constrain our database structures from code. In addition, we’ll look at how we can easily build out some relationships in our models that translate directly into relationships in the database.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Brian L. Gorman
About this chapter
Cite this chapter
Gorman, B.L. (2020). Constraints, Keys, and Relationships. In: Practical Entity Framework. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6044-9_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6044-9_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6043-2
Online ISBN: 978-1-4842-6044-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)