I am trying to do this tutorial http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part4-cs but instead of using the compact edition
If you create a Linq-to-Sql DataContext you can inject the structure directly into your Database whith:
DbDataContext db = new DbDataContext(connectionString); db.CreateDatabase();