Skip to content

값 객체를 관계형 데이터베이스에 저장해야 하는 경우 어떤 방법이 효과적일까? #2

Description

@seohy02

예제 중 FullName(FirstName, LastName) 값 객체를 속성으로 값는 User 클래스가 있다고 가정합니다.

User를 관계형 데이터베이스에 저장할 때 FullName 값 객체는 User 테이블에서 어떤 방식으로 저장되는 것이 가장 효과적이라고 생각하나요?

namespace _04
{
    class FullName
    {
        public FullName(string firstName, string lastName)
        {
            FirstName = firstName;
            LastName = lastName;
        }

        public string FirstName { get; }
        public string LastName { get; }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions