我嘗試添加一個新的國家,該國有一個鏈接到大陸。當我按下「創建」按鈕時,它不會添加新記錄。我調試了我的項目,我認爲這是因爲ValidState是錯誤的。因爲這個原因,屬性「Continent」爲空,但Continent_Id不是。 我嘗試編輯現有國家時遇到同樣的問題。 (我已經使用SQL Management Studio中的SQL腳本填充了我的數據庫) 有人可以幫助我嗎? 洲類: public c
我有一個表Product,一個表ProductType,最後一個表ProductCompanies。這是它們之間的關係: 我有一個ProductViewModel是這樣的: public class ProductViewModel
{
public Product Product { get; set; }
public List<SelectListItem
我有一個名爲「出版物」的模式,它有另一種模式裏面所謂的「出版商」: public class Publication
{
public int PublicationID { get; set; }
public Publisher Publisher { get; set; }
}
public class Publisher
{
public int P