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();
        }
Exemplo n.º 3
0
 partial void UpdateDBAppointment(DBAppointment instance);
Exemplo n.º 4
0
 partial void DeleteDBAppointment(DBAppointment instance);
Exemplo n.º 5
0
 partial void InsertDBAppointment(DBAppointment instance);