dotnet / dotnet/docs

Example of configuring Value Objects in EF Core is outdated

Open
#42,377 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-architecture/svc microservices/subsvc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Outdated article

### Description

On the subject of [Persist value objects as owned entity types in EF Core 2.0 and later](https://learn.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/implement-value-objects#persist-value-objects-as-owned-entity-types-in-ef-core-20-and-later) you still state that a value object should be configured as an owned type. While in the newest EF Core version you now advice to configure them as `ComplexProperty` and only configure entities as owned.

### Page URL

https://learn.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/implement-value-objects

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/architecture/microservices/microservice-ddd-cqrs-patterns/implement-value-objects.md

### Document Version Independent Id

cf912666-9ad3-1673-8f69-6bf52c034ef9

### Article author

@jamesmontemagno

### Metadata

* ID: 70b14bbb-dc66-f1a2-8b14-39ef3b4bde1d
* Service: **dotnet-architecture**
* Sub-service: **microservices**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.