---
title: "Discussion on \"[EF Core] ValueConverter를 이용해서 엔터티 속성의 도메인 관리\" | Hashnode"
description: "Discussion on \"[EF Core] ValueConverter를 이용해서 엔터티 속성의 도메인 관리\". EF Core를 사용하면서 문자열 길이 등의 특성을 일일이 지정하는 것은 번거롭습니다.\n...\n[MaxLength(32)]\npublic string? 제목 { get; set; }\n\n\n엔터티가 한 개일 때는 상관이 없으나 제목 유형이 여러 엔터티에 사용될 경우 유형을 지정하기 번거롭습니다.\n\n속성 유형을 도메인으로 관리하면 참 편할텐데요, ValueConverter를 이용할 수 있습니다.\n그런데 이것을 인터페이스 정적 추상를 사용해서 다음처럼 ..."
url: "https://hashnode.com/posts/ef-core-valueconverter/65f557e293a7593d3f1eb271"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[EF Core\] ValueConverter를 이용해서 엔터티 속성의 도메인 관리](https://dimohy.slogs.dev/ef-core-valueconverter?utm_source=hashnode&utm_medium=feed)

EF Core를 사용하면서 문자열 길이 등의 특성을 일일이 지정하는 것은 번거롭습니다. ... \[MaxLength(32)\] public string? 제목 { get; set; } 엔터티가 한 개일 때는 상관이 없으나 제목 유형이 여러 엔터티에 사용될 경우 유형을 지정하기 번거롭습니다. 속성 유형을 도메인으로 관리하면 참 편할텐데요, ValueConverter를 이용할 수 있습니다. 그런데 이것을 인터페이스 정적 추상를 사용해서 다음처럼 ...

Mar 16, 2024 · 2 min read · dimohy.slogs.dev  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#efcore](https://hashnode.com/tag/efcore)

## Written by

[dimohy](https://hashnode.com/@dimohy)

@dimohy · Kyunggi, KR

  
[View profile](https://hashnode.com/@dimohy)

@csharp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
