我有DTO SUACH的列表为:嵌套DTO搜索
Public Class UKey
{
public Int64 Key{ get; set; }
}
Public Class Test : UKey
{
public Int64? CityId { get; set; }
public Test2 test2{ get; set; }
}
Public Class Test2 : UKey
{
public Int64? CountryId { get; set; }
public Test3 test3 {get;set;}
}
public Class Test3 :UKey
{
}
我有嵌套的DTO,例如类测试具有类试验2的成员,并且类TEST2具有类型类测试3中,每个成员类有它自己的唯一键,这个键不能在它们中重复,就像GUID一样。 我想查询类测试,找到这些嵌套的Dtos与给定的唯一键之一。