migrationBuilder.InsertData(
table: "Models",
columns: new[] { "Id", "Name" },
values: new object[,]
{
{ Guid.NewGuid() ,"Alfa Romeo"},
{ Guid.NewGuid() ,"Audi"},
{ Guid.NewGuid() ,"BMW"},
{ Guid.NewGuid() ,"Citroen"},
{ Guid.NewGuid() ,"Dacia"},
{ Guid.NewGuid() ,"Ferrari"},
{ Guid.NewGuid() ,"Fiat"},
{ Guid.NewGuid() ,"Ford"},
{ Guid.NewGuid() ,"Honda"},
{ Guid.NewGuid() ,"Hummer"},
{ Guid.NewGuid() ,"Hyundai"},
{ Guid.NewGuid() ,"Infiniti"},
{ Guid.NewGuid() ,"Jaguar"},
{ Guid.NewGuid() ,"Jeep"},
{ Guid.NewGuid() ,"Kia"},
{ Guid.NewGuid() ,"Lamborghini"},
{ Guid.NewGuid() ,"Land Rover"},
{ Guid.NewGuid() ,"Lexus"},
{ Guid.NewGuid() ,"Maserati"},
{ Guid.NewGuid() ,"Mazda"},
{ Guid.NewGuid() ,"Mercedes Benz"},
{ Guid.NewGuid() ,"Mini"},
{ Guid.NewGuid() ,"Mitsubishi"},
{ Guid.NewGuid() ,"Nissan"},
{ Guid.NewGuid() ,"Opel"},
{ Guid.NewGuid() ,"Peugeot"},
{ Guid.NewGuid() ,"Porsche"},
{ Guid.NewGuid() ,"Renault"},
{ Guid.NewGuid() ,"Rolls Royce"},
{ Guid.NewGuid() ,"Seat"},
{ Guid.NewGuid() ,"Smart"},
{ Guid.NewGuid() ,"Subaru"},
{ Guid.NewGuid() ,"Suzuki"},
{ Guid.NewGuid() ,"Tesla"},
{ Guid.NewGuid() ,"Toyota"},
{ Guid.NewGuid() ,"Volkswagen"},
{ Guid.NewGuid() ,"Volvo"},
{ Guid.NewGuid() ,"Škoda"}
});
//Models
migrationBuilder.InsertData(
table: "Models",
columns: new[] { "MakeId", "Id", "Name" },
values: new object[,]
{
{ \* guid тут *\, Touareg" }
});
Как я могу получить Guid из Make для создания Model (оно там нужно как foreignKey (то есть вместо комментария нужно получить Id марки Volkswagen)).