protected DataAction insertRelated(DataAction action, Recurring changedEvent, SchedulerDataContext context)
 {
     if (action.Type == DataActionTypes.Insert && changedEvent.rec_type == "none")
     {//insert_related
         action.Type = DataActionTypes.Delete;
     }
     return(action);
 }
 protected bool deleteRelated(DataAction action, Recurring changedEvent, SchedulerDataContext 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)
     {
         Recurring changed = (from ev in context.Recurrings where ev.id == action.TargetId select ev).Single();
         changed.rec_type = "none";
         finished = true;
     }
     return finished;
 }
        protected bool deleteRelated(DataAction action, Recurring changedEvent, SchedulerDataContext 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)
            {
                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);
 protected DataAction insertRelated(DataAction action, Recurring changedEvent, SchedulerDataContext context)
 {
     if (action.Type == DataActionTypes.Insert && changedEvent.rec_type == "none")
     {//insert_related
          action.Type = DataActionTypes.Delete;
     }
     return action;
 }
 partial void DeleteRecurring(Recurring instance);
 partial void UpdateRecurring(Recurring instance);
 partial void InsertRecurring(Recurring instance);