I have List of DTO Suach as :
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
{
}
I have nested DTOs,for example class test has a member of class test 2 and class test2 has a member of type class test 3,each class has it's own unique key and this key can not be repeated in any of them,somthing like GUid. I want to query Class Test to find just one of these nested Dtos with the given unique key.