Example #1
0
 public void Update(ModuleInput entity)
 {
     this.DbHelper.Execute(this.Table, proc =>
                           proc.AsUpdate(entity, "ParentId", "Target", "Icon", "Name", "IsVisible", "Status", "Modifier", "ModifyTime")
                           .Where("Id", entity.Id)
                           );
 }
Example #2
0
        public void Delete(ModuleInput entity)
        {
            entity.IsDeleted = 1;

            this.DbHelper.Execute(this.Table, proc =>
                                  proc.AsUpdate(entity, "IsDeleted", "Modifier", "ModifyTime")
                                  .Where("Id", entity.Id)
                                  );
        }
Example #3
0
 public void Insert(ModuleInput entity)
 {
     this.DbHelper.Execute(this.Table, proc =>
                           proc.AsInsert(entity, "Id", "Creator", "CreateTime", "IsDeleted", "ParentId", "Target", "Icon", "Name", "IsVisible", "Status")
                           );
 }