예제 #1
0
        /// <summary>
        /// Adds the specified workflow template element tag.
        /// </summary>
        /// <param name="workflowTemplateElementTag">The workflow template element tag.</param>
        /// <returns></returns>
        public tbl_WorkflowTemplateElementTag Add(tbl_WorkflowTemplateElementTag workflowTemplateElementTag)
        {
            if (workflowTemplateElementTag.ID == Guid.Empty)
            {
                workflowTemplateElementTag.ID = Guid.NewGuid();
            }
            _dataContext.tbl_WorkflowTemplateElementTag.AddObject(workflowTemplateElementTag);
            _dataContext.SaveChanges();

            return(workflowTemplateElementTag);
        }
예제 #2
0
 /// <summary>
 /// Updates the specified workflow template element tag.
 /// </summary>
 /// <param name="workflowTemplateElementTag">The workflow template element tag.</param>
 public void Update(tbl_WorkflowTemplateElementTag workflowTemplateElementTag)
 {
     _dataContext.SaveChanges();
 }