Hi,
We're using ABP with EFCore to SQL Server (using an Angular frontend). All our entities are FullAuditedXXXWithUser<long, IdentityUser>.
The LastModificationTime is not always updated, specially when updating a relationship.
For example,: we have a book with one author (one-to-many. Book has a field long? AuthorId {get;set;}).
When updating some fields from book, the modification fields are updated.
When only updating the author (choosing a new author from the dropdown), the modification fields are not updated. We expected those auditfields to be updated.
Is there some (undocumented) configuration we need to do, or a bug?
We've created a new simple ABP project to reproduce, and the same behaviour happens.
- Template: app
- Created ABP Studio Version: 1.1.2
- Current ABP Studio Version: 1.4.1
- Tiered: No
- Multi-Tenancy: No
- UI Framework: angular
- Theme: leptonx
- Theme Style: system
- Theme Menu Placement: side
- Run Install Libs: Yes
- Progressive Web App: No
- Run Progressive Web App Support: No
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Create Initial Migration: Yes
- Run Db Migrator: Yes
- Mobile Framework: none
- Public Website: No
- Social Login: No
- Include Tests: Yes
- Kubernetes Configuration: No
- Distributed Event Bus: none
- Use Local References: No
- Optional Modules:
- GDPR
- TextTemplateManagement
- LanguageManagement
- AuditLogging
- OpenIddictAdmin
 
- Selected Languages:
Dutch, English, Français
- Default Language: Dutch
- Create Command: abp new AbpShowcase -t app --ui-framework angular --database-provider ef --database-management-system sqlserver --theme leptonx --without-cms-kit --sample-crud-page --dont-run-bundling --no-multi-tenancy --no-social-logins -no-saas -no-file-management
- Exception message and full stack trace:
NA
- Steps to reproduce the issue:
- In a new ABP Project (Angular, EF Core to SQL Server) and create two FullAuditedAggregates with a one-to-many relationship (eg. a book has one author)
- The should be a field public long? AuthorId {get;set;}
 
- On the detailscreen of book, choose another author. (update only this one-to-many property!)
- ==> Auditfields LastModificationTime and LastModifier are not updated.