Skip to content

Commit

Permalink
[fix] InsertOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Aug 19, 2024
1 parent 7b60fcc commit 5de0561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AntJob.Data/Entity/应用历史.Biz.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public partial class AppHistory : EntityBase<AppHistory>
#region 对象操作
static AppHistory()
{
Meta.Table.DataTable.InsertOnly = true;

// 累加字段
//var df = Meta.Factory.AdditionalFields;
//df.Add(__.AppID);
Expand Down
2 changes: 1 addition & 1 deletion AntJob.Web/Areas/Ant/Controllers/AppHistoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class AppHistoryController : AntEntityController<AppHistory>
{
static AppHistoryController()
{
AppOnline.Meta.Table.DataTable.InsertOnly = true;
//AppHistory.Meta.Table.DataTable.InsertOnly = true;

ListFields.RemoveField("Id", "Version", "CompileTime", "");
ListFields.AddListField("Remark", null, "TraceId");
Expand Down

0 comments on commit 5de0561

Please sign in to comment.