我有以下课程 public class Book public string BookId { get; set; } public string Description { get; set; } = string.Empty;
public ICollection<BookCategory> CategoriesLink { get; set;
我能在EntityFrameworkCore中做到这一点吗? modelBuilder.Entity() .HasMany(r => r.TaggedCustomers)
.WithMany() // No navigation property here 参考:unidirectional many-to-many relationship with Code First Entity Framework
我正在用ODATA开发Asp .Net Core2.2应用程序。我有测试应用程序来重现这个问题:我不能通过ODATA请求请求带有链接表的链接实体。响应错误:
"Message": "The query specified in the URI is not valid. Property 'BookCategories' on type 'GameStorageView.Data.Book' is not a navigation property or complex property