C# 如何在ADO.NET实体框架中添加数组作为属性

C# 如何在ADO.NET实体框架中添加数组作为属性,c#,.net,ado.net,C#,.net,Ado.net,我正在为应用程序使用自定义数据服务提供程序 我需要添加以下类作为实体 public class PhysicalAddress { public PhysicalAddress(); public string City { get; set; } public string Country { get; set; } public string CountryCode { get; set; } } class Parent { public PhysicalAddre

我正在为应用程序使用自定义数据服务提供程序

我需要添加以下类作为实体

public class PhysicalAddress
{
  public PhysicalAddress();

  public string City { get; set; }
  public string Country { get; set; }
  public string CountryCode { get; set; }
}

class Parent
{
  public PhysicalAddress[] Address { get; set; }
}

class Child : Parent
{
  string division;
  string business;
}
这里的Adress属性是PhysicalAddress类的数组。如何将其定义并添加为子实体类型中的基元类型

谢谢


Ram使用导航属性我可以做到这一点