我理解的复杂类型就是简化了编码的操作,实际上在数据库中还是按照约定生成相应的类似“类名_类名”的表结构
public class CompanyAddress { public int ID { get; set; } public string CompanyName { get; set; } public string StreetAddress { get; set; } public string City { get; set; } public string State { get; set; } public string ZipCode { get; set; } } public class FamilyAddress { public int ID { get; set; } public string StreetAddress { get; set; } public string City { get; set; } public string State { get; set; } public string ZipCode { get; set; } }