Example #1
0
 public static long AddTask(string name, long companyID)
 {
     Task c = new Task();
     c.TaskName = name;
     c.CompanyID = companyID;
     return c.InsertTask();
 }
 partial void DeleteTask(Task instance);
 partial void UpdateTask(Task instance);
 partial void InsertTask(Task instance);
 private void detach_Tasks(Task entity)
 {
     this.SendPropertyChanging();
     entity.Company = null;
 }
 private void attach_Tasks(Task entity)
 {
     this.SendPropertyChanging();
     entity.Company = this;
 }
Example #7
0
 public static Task GetTask(long id)
 {
     Task c = new Task();
     c = c.GetTask(id);
     return c;
 }