/// <summary> /// Adds the specified workflow template element relation. /// </summary> /// <param name="workflowTemplateElementRelation">The workflow template element relation.</param> /// <returns></returns> public tbl_WorkflowTemplateElementRelation Add(tbl_WorkflowTemplateElementRelation workflowTemplateElementRelation) { if (workflowTemplateElementRelation.ID == Guid.Empty) { workflowTemplateElementRelation.ID = Guid.NewGuid(); } _dataContext.tbl_WorkflowTemplateElementRelation.AddObject(workflowTemplateElementRelation); _dataContext.SaveChanges(); return(workflowTemplateElementRelation); }
/// <summary> /// Updates the specified workflow template element relation. /// </summary> /// <param name="workflowTemplateElementRelation">The workflow template element relation.</param> public void Update(tbl_WorkflowTemplateElementRelation workflowTemplateElementRelation) { _dataContext.SaveChanges(); }