Get entity navigation properties after insert
If I understand you correctly, you’re trying to eagerly load a complex property after establishing a relationship via a foreign key property. SaveChanges() does not do anything in the way of loading complex properties. At most, it is going to set your primary key property if you’re adding new objects. Your line reward = context.Set<Reward>().SingleOrDefault(a … Read more