protected bool deleteRelated(DataAction action, Recurring changedEvent, DHXSchedulerModelsDataContext context)
 {
     bool finished = false;
     if ((action.Type == DataActionTypes.Delete || action.Type == DataActionTypes.Update) && !string.IsNullOrEmpty(changedEvent.rec_type))
     {
         context.Recurrings.DeleteAllOnSubmit(from ev in context.Recurrings where ev.event_pid == changedEvent.id select ev);
     }
     if (action.Type == DataActionTypes.Delete && (changedEvent.event_pid != 0 && changedEvent.event_pid != null))
     {
         Recurring changed  = (from ev in context.Recurrings where ev.id == action.TargetId select ev).Single() ;
         changed.rec_type = "none";
         finished = true;
     }
     return finished;
 }
 partial void DeleteRecurring(Recurring instance);
 partial void UpdateRecurring(Recurring instance);
 partial void InsertRecurring(Recurring instance);
 partial void DeleteRecurring(Recurring instance);
 partial void UpdateRecurring(Recurring instance);
 partial void InsertRecurring(Recurring instance);