public TaskExtension NewTaskExtension(TaskExtension extension) { var obj = extension.GetTableObject(); var taskExtensionId = m_db.Insert("TaskExtensions", "task_extension_id", true, obj); extension.TaskExtensionId = (int)taskExtensionId; return(extension); }
public int SaveTaskExtension(TaskExtension obj) { var taskExtension = obj.GetTableObject(); return(m_db.Update("TaskExtensions", "task_extension_id", taskExtension, taskExtension.task_extension_id)); }
public int UpdateTaskExtension(TaskExtension taskExtension) { var obj = taskExtension.GetTableObject(); return(m_db.Update("TaskExtensions", "task_extension_id", obj, obj.task_extension_id)); }