EF Core HasMany vs OwnsMany
问题 For one to many relationship, what's the difference between HasMany and OwnsMany ? When should I use one over another? For example: public class xxx { public virtual IReadOnlyCollection<xxxHistoryEntity> Histories => _histories; private readonly List<xxxHistoryEntity> _histories = new List<xxxHistoryEntity>(); } public class xxxHistoryEntity : Entity<string> { public string State { get; set; } public string NodeId { get; set; } public string Message { get; set; } } The Entity Configuration: