There is a existing database named Northwind with a webform application. when running the application raise up a error: \'invalid column name CategoryCategoryID\'. any one h
One way to solve this is to add a new FK property to your Product
entity:
public class Product
{
public int ProductID { get; set; }
public string ProductName { get; set; }
public Decimal? UnitPrice { get; set; }
public bool Discontinued { get; set; }
[ForeignKey("Category")]
public int CategoryId { get; set; }
public virtual Category Category { get; set; }
}