C# 类中的t Tag.Name作为PrimaryKey(因此,不再有唯一的约束内容),它不起作用!unique key也有同样的问题(因为PK…实际上是一种unique key ^^^),但现在在PK Tag.name上。我还尝试在类中使用just Tag.n
C# 类中的t Tag.Name作为PrimaryKey(因此,不再有唯一的约束内容),它不起作用!unique key也有同样的问题(因为PK…实际上是一种unique key ^^^),但现在在PK Tag.name上。我还尝试在类中使用just Tag.n,c#,entity-framework-core,many-to-many,C#,Entity Framework Core,Many To Many,类中的t Tag.Name作为PrimaryKey(因此,不再有唯一的约束内容),它不起作用!unique key也有同样的问题(因为PK…实际上是一种unique key ^^^),但现在在PK Tag.name上。我还尝试在类中使用just Tag.name作为PrimaryKey(因此,不再使用unique约束),但它不起作用!unique key也有同样的问题(因为PK实际上是一种unique key ^^^),但是现在在PK Tag.name上。 POST /recipes { "
类中的t Tag.Name作为PrimaryKey(因此,不再有唯一的约束内容),它不起作用!unique key也有同样的问题(因为PK…实际上是一种unique key ^^^),但现在在PK Tag.name上。我还尝试在类中使用just Tag.name作为PrimaryKey(因此,不再使用unique约束),但它不起作用!unique key也有同样的问题(因为PK实际上是一种unique key ^^^),但是现在在PK Tag.name上。
POST /recipes
{
"title": "A first title",
"tags": [
{
"name": "dinner"
}
]
}
POST /recipes
{
"title": "A second title",
"tags": [
{
"name": "dinner"
}
]
}