Cannot create controller with Entity framework - Unable to retrieve metadata
public class EFDbContext : DbContext
{
public DbSet<Product> Products { get; set; }
}
Forgot the { get; set; }... all works now #crying
Problem may be because of missing [NotMapped]
Attribute in one of the model class.
As I missed the attribute and I was cunning my head.
[Display(Name="Logo")]
[DataType(DataType.Upload)]
[NotMapped]
public HttpPostedFileBase Logo { set; get; }