Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 partial void DeleteRecurring(Recurring instance);
Ejemplo n.º 5
0
 partial void UpdateRecurring(Recurring instance);
Ejemplo n.º 6
0
 partial void InsertRecurring(Recurring instance);
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 partial void DeleteRecurring(Recurring instance);
Ejemplo n.º 9
0
 partial void UpdateRecurring(Recurring instance);
Ejemplo n.º 10
0
 partial void InsertRecurring(Recurring instance);