完善国家管理和数据多语言
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user