How to implement an Entity that has a composite primary key? #593
Unanswered
gpinheiro1871
asked this question in
Q&A
Replies: 1 comment
-
Maybe a good read : https://enterprisecraftsmanship.com/posts/value-objects-identity/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi !
I need help figuring out how to implement this using this package in EFCore.
I have Person and PersonAddress classes with the following signatures:
public class Person : AggregateRoot<Guid>
public abstract class AggregateRoot<TId> : Entity<TId>, IAggregateRoot where TId : IComparable<TId>
public sealed class PersonAddress : Entity<Guid>
The Entity class is from the package.
Can you help me with this issue please?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions