void OnSchedulerStorage1AppointmentsInserted(object sender, PersistentObjectsEventArgs e)
 {
     foreach (Appointment apt in e.Objects)
     {
         DBAppointment dbApt = (DBAppointment)apt.GetSourceObject(this.schedulerStorage1);
         this.context.DBAppointments.InsertOnSubmit(dbApt);
         this.context.SubmitChanges();
     }
 }
        void OnSchedulerStorage1AppointmentDeleting(object sender, PersistentObjectCancelEventArgs e)
        {
            Appointment   apt   = (Appointment)e.Object;
            DBAppointment dbApt = (DBAppointment)apt.GetSourceObject(this.schedulerStorage1);

            if (dbApt == null) // occurrence
            {
                return;
            }
            this.context.DBAppointments.DeleteOnSubmit(dbApt);
            this.context.SubmitChanges();
        }
Ejemplo n.º 3
0
 partial void UpdateDBAppointment(DBAppointment instance);
Ejemplo n.º 4
0
 partial void DeleteDBAppointment(DBAppointment instance);
Ejemplo n.º 5
0
 partial void InsertDBAppointment(DBAppointment instance);