221
CHAPTER 6 | Tackle Business Complexity in a Microservice with DDD and CQRS Patterns
•
No inheritance-mapping support for owned types, but you should be able to map two leaf types
of the same inheritance hierarchies as different owned types. EF Core will not reason about the
fact that they are part of the same hierarchy.
Main differences with EF6’s complex types
•
Table splitting is optional, that is, they can optionally be mapped to a separate table and still be
owned types.
Additional resources
•
Martin Fowler. ValueObject pattern
https://martinfowler.com/bliki/ValueObject.html
•
Eric Evans. Domain-Driven Design: Tackling Complexity in the Heart of Software.
(Book;
includes a discussion of value objects)
https://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-
Software/dp/0321125215/
•
Vaughn Vernon. Implementing Domain-Driven Design.
(Book; includes a discussion of value
objects)
https://www.amazon.com/Implementing-Domain-Driven-Design-Vaughn-
Vernon/dp/0321834577/
•
Owned Entity Types
https://learn.microsoft.com/ef/core/modeling/owned-entities
•
Shadow Properties
https://learn.microsoft.com/ef/core/modeling/shadow-properties
•
Dostları ilə paylaş: