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

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

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

相关文章
相关标签/搜索