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