Пример #1
0
 public void GetLessonById(int id, onQueryComplete onComplete)
 {
     lessonDsq = (DataServiceQuery<LESSON>)(from les in ctx.LESSON where les.ID == id select les);
     this.onUQC = onComplete;
     lessonDsq.BeginExecute(onQueryComplete2, null);
 }
Пример #2
0
 public void GetLessonByID(int id, onQueryComplete onComplete)
 {
     lessonDsq = (DataServiceQuery<LESSON>)(ctx.LESSON.Where(r => r.ID == id));
     this.onUQC = onComplete;
     resourceDsq.BeginExecute(onResComplete, null);
 }
Пример #3
0
 public void EditNote(NOTE note, onQueryComplete onComplete)
 {
     ctx.UpdateObject(note);
     this.onUQC = onComplete;
     ctx.BeginSaveChanges(onQueryComplete2, null);
 }
Пример #4
0
 public void GetCourseByID(int id, onQueryComplete onComplete)
 {
     courseDsq = (DataServiceQuery<COURSE>)(ctx.COURSE.Where(r => r.ID == id));
     this.onUQC = onComplete;
     resourceDsq.BeginExecute(onResComplete, null);
 }
Пример #5
0
 public void EditCourse(COURSE course, onQueryComplete onComplete)
 {
     ctx.UpdateObject(course);
     this.onUQC = onComplete;
     ctx.BeginSaveChanges(onQueryComplete2, null);
 }
Пример #6
0
 public void EditLesson(LESSON lesson, onQueryComplete onComplete)
 {
     ctx.UpdateObject(lesson);
     this.onUQC = onComplete;
     ctx.BeginSaveChanges(onQueryComplete2, null);
 }
Пример #7
0
 public void getUserById(int id, onQueryComplete onComplete)
 {
     customerDsq = (DataServiceQuery<CUSTOMER>)(from cus in ctx.CUSTOMER where cus.ID == Constants.User.ID select cus);
     this.onUQC = onComplete;
     customerDsq.BeginExecute(onQueryComplete2, null);
 }
Пример #8
0
 public void InsertNote(NOTE note, onQueryComplete onComplete)
 {
     ctx.AddToNOTE(note);
     this.onUQC = onComplete;
     ctx.BeginSaveChanges(onQueryComplete2, null);
 }
Пример #9
0
 public void GetTypeByResourceID(int id, onQueryComplete onComplete)
 {
     resourceDsq = (DataServiceQuery<RESOURCE>)(ctx.RESOURCE.Where(r => r.ID == id));
     this.onUQC = onComplete;
     resourceDsq.BeginExecute(onResComplete, null);
 }
Пример #10
0
 public void GetResourcesByLessonId(int id, onQueryComplete onComplete)
 {
     resourceDsq = (DataServiceQuery<RESOURCE>)(ctx.RESOURCE.Where(r => r.LESSON_ID == id));
     this.onUQC = onComplete;
     resourceDsq.BeginExecute(onQueryComplete2, null);
 }
Пример #11
0
 public void GetNoteByLessonId(int id, onQueryComplete onComplete)
 {
     noteDsq = (DataServiceQuery<NOTE>)(from note in ctx.NOTE where note.LESSON_ID == id select note);
     this.onUQC = onComplete;
     noteDsq.BeginExecute(onQueryComplete2, null);
 }
Пример #12
0
 public void GetNoteByID(int id, onQueryComplete onComplete)
 {
     noteDsq = (DataServiceQuery<NOTE>)(ctx.NOTE.Where(r => r.ID == id));
     this.onUQC = onComplete;
     resourceDsq.BeginExecute(onResComplete, null);
 }
Пример #13
0
 public void GetNoteByCustomerID(int id, onQueryComplete onComplete)
 {
     noteDsq = (DataServiceQuery<NOTE>)(ctx.NOTE.Where(n => n.CUSTOMER_ID == id));
     this.onUQC = onComplete;
     noteDsq.BeginExecute(onQueryComplete2, null);
 }