Skip to content

Commit

Permalink
增加支持属性验证的命名空间"System.ComponentModel.DataAnnotations"
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSky-AI committed Sep 14, 2023
1 parent 35ead37 commit 212bf9b
Showing 1 changed file with 1 addition and 0 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

0 comments on commit 212bf9b

Please sign in to comment.