|
|
@ -34,6 +34,12 @@ namespace SqlSugar |
|
|
|
} |
|
|
|
|
|
|
|
protected override IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization) |
|
|
|
{ |
|
|
|
if (type.IsAnonymousType()||type==UtilConstants.ObjType|| type.Namespace=="SqlSugar"|| type.IsClass()==false) |
|
|
|
{ |
|
|
|
return base.CreateProperties(type, memberSerialization); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var list = type.GetProperties() |
|
|
|
.Where(x => !x.GetCustomAttributes(true).Any(a => (a is SugarColumn) && ((SugarColumn)a).NoSerialize == true)) |
|
|
@ -54,6 +60,7 @@ namespace SqlSugar |
|
|
|
} |
|
|
|
return list; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static void CreateDateProperty(Type type, JsonProperty item) |
|
|
|
{ |
|
|
|