EntityFramework中Mapper怎麼定義聯合主鍵?

HasKey(m => new { m.StoreId, m.CarTypeId, m.CarLevel})

用「new {}」聯合主鍵以「,」分隔形式定義spa

相關文章
相關標籤/搜索