“System.InvalidOperationException”型別的未經處理的例外在 EntityFramework.dll 中發生
其他資訊: A specified Include path is not valid. The EntityType 'Work.Goods' does not declare a navigation property with the name 'Type'.
相關代碼:
public class Goods
{
[Key]
public string ID { get; set; }
public string Type { get; set; }
public double Price { get; set; }
………………
}
uj5u.com熱心網友回復:
找到答案了,更正后改error不再提出,但具體原因仍未分析明白抱有同樣問題的可參考該提問下的第一個回答:
https://stackoverflow.com/questions/20637776/a-specified-include-path-is-not-valid-the-entitytype-does-not-declare-a-navigat
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/38116.html
