我正在使用.NET Core和EF Core进行Web项目.我正在努力如何查询多对多的关系.这就是我的模型:
public class Begrip
{
public int ID { get; set; }
public string Name { get; set; }
public string Desc { get; set; }
[Url]
public string URL { get; set; }
public ICollection<BegripCategory> Categories { get; set; }
}
public class Category
{
public int ID { get; set; }
public string Name { get; set; }
public ICollection<BegripCategory> Begrippen { get; set; }
}
public class BegripCategory
{
public int begripId { get; set; …
Run Code Online (Sandbox Code Playgroud) c# asp.net-mvc entity-framework entity-framework-core asp.net-core