public override void RemoveChild(AssestmentContext dbContext, BaseEntity childToRemove) { var itemToRemove = Pa_ExQuestion.FirstOrDefault(x => x.InternalId == childToRemove.InternalId); Pa_ExQuestion.Remove(itemToRemove); dbContext.Pa_ExQuestion.Remove(itemToRemove); }
public override void AddChild(BaseEntity childToAdd) { Pa_ExQuestion.Add((Pa_ExQuestion)childToAdd); }