나는 같이 갈 몇 가지 예 보았다 :중첩 클래스의 컬렉션을 가져 오지 않으면 중첩 클래스의 장점은 무엇입니까?
public class Customer
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public Address Address { get; set; }
}
public class Address
{
public string Street { get; set; }
public string City { get; set; }
}
을 그리고 난 아직도 다음을 통해 어떤 장점 알아낼가 없습니다 그것에 대해
public class Customer
{
public int ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Street { get; set; }
public string City { get; set; }
}
어떤 아이디어?
건배.
데이터베이스 정규화에 대해 알아보십시오. http://en.wikipedia.org/wiki/Database_normalization – MarcinJuraszek