HasKey(m => new { m.StoreId, m.CarTypeId, m.CarLevel}) 用“new {}”联合主键以“,”分隔形式定义 转载于:https://www.cnblogs.com/sggx/p/4626341.html