【发布时间】:2013-01-24 17:03:41
【问题描述】:
我有 DTO Suach 的列表:
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,例如 class test 有一个 class test 2 的成员, class test2 有一个 type class test 3 的成员,每个类都有自己的唯一键,这个键不能在任何一个中重复,类似于 GUId 的东西。 我想查询 Class Test 以找到具有给定唯一键的嵌套 Dto 之一。
【问题讨论】: