Query

Jan 12, 2015 at 1:15 PM
Hi List,
i have the following entities:

public partial class Project:BaseEntity,IEntity<long>
{
.........
public virtual ICollection<ProjectAddressType> DeliveryAddress {get;set;}
}
public class AddressType:BaseEntity, IEntity<long>
{
[Key]
public long Id { get; set; }

public Guid Id_Guid {get;set;}

public string Type {get;set;}

public long Address_Id {get;set;}

[ForeignKey("Address_Id")]
public virtual Address Address {get;set;}
}
public class ProjectAddressType :AddressType
{
[Required]
public long Project_Id {get;set;}

[ForeignKey("Project_Id")]  
public Project Project {get;set;}   
}

i have no idea how to query the full graph from Project-> DeliveryAddress -> Address

Any idea
Thanks
Peter
Coordinator
Feb 12, 2015 at 6:50 PM
Marked as answer by lelong37 on 2/12/2015 at 11:50 AM