Building a Code-First Model Using Attributes in Entity Framework

In previous posts we have created a database-first model [http://www.exceptionnotfound.net/entity-framework-for-beginners-creating-a-database-first-model/] , created a model-first model using an EDMX [http://www.exceptionnotfound.net/entity-framework-for-beginners-creating-a-model-first-model/] , and created a code-first model from an existing database [http://www.exceptionnotfound.net/entity-framework-for-beginners-creating-a-code-first-model-from-a-database] . In this post, we will create a co