EF复合主键

 [Key,Column(Order = 0)]  
 [Key,Column(Order = 1)]  
原文地址:https://www.cnblogs.com/roboot/p/11957433.html