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) ); }
public void Delete(ModuleInput entity) { entity.IsDeleted = 1; this.DbHelper.Execute(this.Table, proc => proc.AsUpdate(entity, "IsDeleted", "Modifier", "ModifyTime") .Where("Id", entity.Id) ); }
public void Insert(ModuleInput entity) { this.DbHelper.Execute(this.Table, proc => proc.AsInsert(entity, "Id", "Creator", "CreateTime", "IsDeleted", "ParentId", "Target", "Icon", "Name", "IsVisible", "Status") ); }