I try to create database from entity framework code first follow with this tutorial
http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part4-cs
but I use SQL Server 2005 instead when SQLExpress but When I execute solution don't have anything create. What wrong with my code
This is my code.
Movie.cs
public class Movie
{
public int ID { get; set; }
public string Title { get; set; }
public DateTime ReleaseDate { get; set; }
public string Genre { get; set; }
public decimal Price { get; set; }
}
public class MovieDBContext : DbContext
{
public DbSet Movies { get; set; }
}
And this is my connection string in web.config
What Wrong with my code? Why database wasn't created.
thank you every one to help me.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)