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