Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Sep 28, 2023
2 parents 9fd3e98 + 7beef61 commit d5c01a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions XCode/Code/EntityBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ protected virtual void AddNameSpace()
us.Add("XCode.Cache");
us.Add("XCode.Configuration");
us.Add("XCode.DataAccessLayer");
us.Add("System.ComponentModel.DataAnnotations");//属性验证
//us.Add("XCode.Common");
if (Business) us.Add("XCode.Shards");

Expand Down
3 changes: 1 addition & 2 deletions XCode/DataAccessLayer/Model/ModelHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ static IDataTable ProcessNeedHistory(IDataTable table)
col.DataType = typeof(DateTime);
col.Name = table.Name + "ID";
col.DataType = typeof(Int32);
//Customer @Id@$
col.Map = table.Name + "@ID@$";
col.Map = $"{table.Name}@ID@$@{table.Name}Info";
historydataTable.Columns.Insert(1, col);

return historydataTable;
Expand Down

0 comments on commit d5c01a0

Please sign in to comment.