EF Core Many-To-One: Adding new Element deletes all other Entries – Asp.net
I have a simple many-to-one relationship: public class Company { public IEnumerable<User> Users { get; set; } public int Id { get; set; } } public class User { public int CompanyId { get; set; } [Required] public Company Company…