小编Ром*_*кий的帖子

在 EF Core 中过滤“包含”实体

我有以下型号

 public class Person
{
    public int PersonId { get; set; }
    public string Name { get; set; }
    public List<PersonRole> PersonRoles { get; set; }

}

public class RoleInDuty
{
    public int roleInDutyId { get; set; }
    public string Name { get; set; }
    public int typeOfDutyId { get; set; }
    public TypeOfDuty typeOfDuty { get; set; }
    public List<PersonRole> PersonRoles { get; set; }

}
public class PersonRole
{
    public int PersonId { get; set; }
    public Person …
Run Code Online (Sandbox Code Playgroud)

c# entity-framework-core asp.net-core

5
推荐指数
1
解决办法
7844
查看次数

标签 统计

asp.net-core ×1

c# ×1

entity-framework-core ×1