public static void AddSubCorrespondence(crmSubCorrespondenceView SelectedSubCorrespondence) { sub_correspondence newCat = new sub_correspondence(); newCat.sub_correspondence_name = SelectedSubCorrespondence.Name; newCat.code = SelectedSubCorrespondence.code; newCat.description = SelectedSubCorrespondence.description; newCat.correspondence_id = SelectedSubCorrespondence.correspondence_id; newCat.sla_id = SelectedSubCorrespondence.sla_id; newCat.status = (bool)SelectedSubCorrespondence.active; newCat.owner = AppData.CurrentUser.id; newCat.created_at = DateTime.Now; Database.CRM.sub_correspondences.InsertOnSubmit(newCat); Database.CRM.SubmitChanges(); }
private void detach_sub_correspondences(sub_correspondence entity) { this.SendPropertyChanging(); entity.correspondence = null; }
partial void Deletesub_correspondence(sub_correspondence instance);
partial void Updatesub_correspondence(sub_correspondence instance);
partial void Insertsub_correspondence(sub_correspondence instance);
private void attach_sub_correspondences(sub_correspondence entity) { this.SendPropertyChanging(); entity.sla_timer = this; }