Exemple #1
0
        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);
        }
Exemple #2
0
 public override void AddChild(BaseEntity childToAdd)
 {
     ExTest_Question.Add((ExTest_Question)childToAdd);
 }