要多屬性組成複合PK 只能使用Fluent API: modelBuilder.Entity<Car>().HasKey(c => new { c.State, c.LicensePlate });; 自動產生值屬性可設為「新增自動 ...
確定! 回上一頁