We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca7f25 commit a07a88fCopy full SHA for a07a88f
1 file changed
src/Services/Ordering/Ordering.Infrastructure/OrderingContext.cs
@@ -62,6 +62,10 @@ void ConfigureAddress(EntityTypeBuilder<Address> addressConfiguration)
62
{
63
addressConfiguration.ToTable("address", DEFAULT_SCHEMA);
64
65
+ // DDD Pattern comment: Implementing the Address Id as "Shadow property"
66
+ // becuase the Address is a Value-Object (VO) and an Id (Identity) is not desired for a VO
67
+ // EF Core just needs the Id so it is capable to store it in a database table
68
+ // See: https://docs.microsoft.com/en-us/ef/core/modeling/shadow-properties
69
addressConfiguration.Property<int>("Id")
70
.IsRequired();
71
0 commit comments