Пример #1
0
        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);
        }
Пример #2
0
        public int SaveTaskExtension(TaskExtension obj)
        {
            var taskExtension = obj.GetTableObject();

            return(m_db.Update("TaskExtensions", "task_extension_id", taskExtension, taskExtension.task_extension_id));
        }
Пример #3
0
        public int UpdateTaskExtension(TaskExtension taskExtension)
        {
            var obj = taskExtension.GetTableObject();

            return(m_db.Update("TaskExtensions", "task_extension_id", obj, obj.task_extension_id));
        }