Mam problem.
Chodzi o to iż mam klasę:
using System;
using System.Data.Entity;
namespace MvcMovie.Models
{
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<Movie> Movies { get; set; }
}
}
Wzieta ze strony Microsoftu. I chodzi o to, że dodałem referencję do System.Data.Entity, i Entity.Designers natomiast VS 2010 dalej nie widzi mi DbContext. I mówi że być może zapomniałem dodać jakąś referencję.
Dokładnie cytując:
`The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?)`
Jest w stanie ktoś coś podpowiedzieć? Z góry dziękuje.