public class HomeController : Controller
{
dbShoppingCarEntities db = new dbShoppingCarEntities();
public ActionResult Index()
{
var products = db.table_Product.OrderByDescending(m => m.Id).ToList();
return View(products);
}
}
dbShoppingCarEntities db = new dbShoppingCarEntities();這行出現以下錯誤
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0246?f1url=%3FappId%3Droslyn%26k%3Dk(CS0246)