aspnetboilerplate: Entity History for List of Navigation Properties inside Entity Not Working
Hello, I am using entity history feature and I was trying to use it against entity that has list of navigation properties as following
[Audited]
public class Branch : FullAuditedAggregateRoot, IMustHaveTenant
{
public LocalizedText Name { get; private set; }
public string Code { get; set; }
public bool IsActive { get; private set; }
public bool IsAirport { get; private set; }
private readonly List<BranchUser> _branchUsers;
public IReadOnlyCollection<BranchUser> BranchUsers => _branchUsers;
public int TenantId { get; set; }
public AddressInformation AddressInformation { get; private set; }
public ContactInformation ContactInformation { get; private set; }
private Branch()
{
_branchUsers = new List<BranchUser>();
}
}
It works only for owned types , but it didn’t work for list 😦
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (8 by maintainers)
See the commit: https://github.com/acjh/aspnetboilerplate/commit/041560d2f561e2d4254ed1b7d8f843738a69b76e
I can’t yet. And it’s irrelevant.
navigation
isnull
inOnModelCreating
. Please see my repro attempt and then create a repro that is forked from it.