-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FullAuditedAggregateRootWithUser generic type wrong constraint #2624
Comments
I am also confused about this. @hikalkan can you explain it. Thanks. |
I suppose that is because
I believe we should update it in |
@acjh you are right. |
BTW, we don't suggest to use this base class since it breaks one of the Aggregate design rules: "Don't add navigation properties between aggregates, use Id instead". But you know not everyone has to perfectly design DDD based apps. If you are using EF Core, it is a common habit to add such navigation properties. |
Thanks for the extra explanation about DDD :) @hikalkan |
You're welcome :) |
hi @hikalkan Line 12 in 251a8d2
abp/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedEntityWithUser.cs Line 12 in 251a8d2
by the way, I am using CQRS pattern. and I find use *EntityWithUser in Query model will be convenient. |
Anyone please tell me why FullAuditedAggregateRootWithUser need TUser to inherited from IEntity<long> while IUser interface using IEntity<Guid>?
abp/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRootWithUser.cs
Lines 11 to 12 in 654eeed
abp/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRootWithUser.cs
Lines 30 to 31 in 654eeed
abp/modules/users/src/Volo.Abp.Users.Domain/Volo/Abp/Users/IUser.cs
Line 8 in 42f37c5
The text was updated successfully, but these errors were encountered: