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