2015-06-16 28 views

回答

0

帶有屬性的數據註釋 [Key]屬性。

用流利的API

modelBuilder.Entity<yourModel>().HasKey(t => t.yourProp); 
相關問題