Ejemplo n.º 1
0
        public void Delete(TopicLikeInput entity)
        {
            entity.IsDeleted = 1;

            this.DbHelper.Execute(this.Table, proc =>
                                  proc.AsUpdate(entity, "IsDeleted", "Modifier", "ModifyTime")
                                  .Where("Id", entity.Id)
                                  );
        }
Ejemplo n.º 2
0
 public void Insert(TopicLikeInput entity)
 {
     this.DbHelper.Execute(this.Table, proc =>
                           proc.AsInsert(entity, "Id", "Creator", "CreateTime", "IsDeleted", "TopicId", "UserId")
                           );
 }