Beispiel #1
0
        public void Create(TaskVO item)
        {
            string sqlQuery = @"
                INSERT INTO
                    Task
                (
                    PriorityID,
                    StatusID,
                    Name,
                    Description,
                    CreateDate,
                    Deleted
                ) VALUES (
                    @p0,
                    @p1,
                    @p2,
                    @p3,
                    @p4,
                    0
                )
            ";

            _dbContext.ExecuteSqlCommand(
                sqlQuery,
                item.PriorityID,
                item.StatusID,
                item.Name,
                item.Description,
                item.CreateDate
                );
        }
Beispiel #2
0
        public void Delete(TaskVO item)
        {
            string sqlQuery = @"
                UPDATE
                    Task
                SET
                    Deleted = 1,
                    DeleteDate = @p1
                WHERE
                    TaskID = @p0
            ";


            _dbContext.ExecuteSqlCommand(
                sqlQuery,
                item.TaskID,
                item.DeleteDate
                );
        }
Beispiel #3
0
        public void Update(TaskVO item)
        {
            string sqlQuery = @"
                UPDATE
                    Task
                SET
                    PriorityID = @p1,
                    StatusID = @p2,
                    Name = @p3,
                    Description = @p4
                WHERE
                    TaskID = @p0
            ";


            _dbContext.ExecuteSqlCommand(
                sqlQuery,
                item.TaskID,
                item.PriorityID,
                item.StatusID,
                item.Name,
                item.Description
                );
        }
Beispiel #4
0
        public void Delete(TaskVO item)
        {
            item.DeleteDate = DateTime.Now;

            _taskDAL.Delete(item);
        }
Beispiel #5
0
 public void Update(TaskVO item)
 {
     _taskDAL.Update(item);
 }
Beispiel #6
0
        public void Create(TaskVO item)
        {
            item.CreateDate = DateTime.Now;

            _taskDAL.Create(item);
        }