I have an entity that owns another entity
public class Entity1 { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public virtual int ID { get; s
Apparently EF Core doesn't support this feature yet.
See this issue on GitHub: https://github.com/aspnet/EntityFrameworkCore/issues/11336
There is also a workaround offered, which I have not tested myself.