/// <summary>
 /// Delete  for Question object
 /// if excepion happeneds during Table operation it must be cought in calling method.
 /// </summary>
 /// <param name="obj">instance of Question class to be inserted </param>
 /// <param name="AddToContext">bool paremeter  tell the Context to attach object if it is not tracked by this instance of the Context </param>
 public void DeleteObject(Question obj, bool AddToContext)
 {
     if (AddToContext)
          servCtx.AttachTo(TableName, obj.InternalEntity, "*");
     servCtx.DeleteObject(obj.InternalEntity);
     servCtx.SaveChangesWithRetries();
 }
Ejemplo n.º 2
0
 public void Update(string catId , Question updatedQuestion)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Insert  for Question object 
 /// if excepion happeneds during Table operation it must be cought in calling method.
 /// </summary>
 /// <param name="obj">instance of Question class to be inserted </param>
 public void AddObject(Question obj )
 {
     servCtx.AddObject(TableName, obj.InternalEntity);
     servCtx.SaveChangesWithRetries();
 }
Ejemplo n.º 4
0
 public void Post(Question question)
 {
     throw new NotImplementedException();
 }