.Net에 처음 접했습니다. 나는이 SQL을 사용하고 두 목록, List<Customer>
및 List<Country>.
두 목록을 결합하여 목록 만들기
이
public class Customer
{
public int CustomerId {get;set;}
public string CustomerName {get;set}
public String Street {get;set}
public String Address {get;set}
public int CountryId {get;set}
//...o
}
public class Country
{
public int CountryId {get;set;}
public String CountryName{get;set}
}
국가 고객을 나열 문을 가입 : 내 프로젝트의 두 개체, Customer
및 Country
있습니다. 그러나 나는 고객 이름과 함께 고객을 포함하는 단일 목록을 어떻게 만들 수 있는지 혼란 스럽습니다.
별도의 클래스를 만들 필요가 있습니까? 사전에
감사합니다.