This project is read-only.

OdeToFood Database isn't being created even after running application

Mar 7, 2014 at 11:27 AM
I am trying to create MVC 4 application(OdeToFood tutorial) in VS Express. I have created this class in models.

But when I run the code, Database "OdeToFoodDB2" isn't being created
namespace OdeToFood.Models
    public class OdeToFoodDB2 : DbContext
        public DbSet<Resturant> Resturant { get; set; }
        public DbSet<ResturantReview> ResturantReview { get; set; }
In web.config file I have following connection string
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-OdeToFood-20140306003945;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-OdeToFood-20140306003945.mdf" providerName="System.Data.SqlClient" />
but this db doesn't contain the tables that I've specified in Model folder.

Much appreciations for helping me