完善国家管理和数据多语言

This commit is contained in:
2025-12-26 00:21:11 +08:00
parent 46794708ff
commit 030299fa53
10 changed files with 182 additions and 150 deletions

View File

@@ -1,6 +1,7 @@
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Runtime.Serialization;
namespace Atomx.Utils.Extension
{
@@ -96,6 +97,12 @@ namespace Atomx.Utils.Extension
var modelDict = source.GetType().GetProperties().ToDictionary(a => a.Name.ToLower());
foreach (var item in modelDict)
{
// Skip properties marked with IgnoreDataMember
if (item.Value.IsDefined(typeof(IgnoreDataMemberAttribute), false))
{
continue;
}
if (item.Value.PropertyType != typeof(DateTime?[]))
{
System.Reflection.PropertyInfo? pi = null;