EntityFramework中Mapper怎么定义联合主键?

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

用“new {}”联合主键以“,”分隔形式定义

原文地址:https://www.cnblogs.com/sggx/p/4626341.html