I have been trying to follow this tutorial ... http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-
In your web.config
file you have this:
<contexts>
<context type="WeddingPreparations.Dal.WeddingContext">
<databaseInitializer type="WeddingPreparations.Dal.WeddingInitializer, KevinLisaWedding" />
</context>
</contexts>
This says look for a class called WeddingPreparations.Dal.WeddingInitializer
in the assembly called KevinLisaWedding
. As your assembly is called WeddingPreparations
you need to change the config to this:
<contexts>
<context type="WeddingPreparations.Dal.WeddingContext, WeddingPreparations">
<databaseInitializer type="WeddingPreparations.Dal.WeddingInitializer, WeddingPreparations" />
</context>
</contexts>