mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -170,10 +170,12 @@ namespace SqlSugar
|
||||
column.IsTranscoding = sugarColumn.IsTranscoding;
|
||||
column.SerializeDateTimeFormat = sugarColumn.SerializeDateTimeFormat;
|
||||
column.IsJson = sugarColumn.IsJson;
|
||||
column.NoSerialize = sugarColumn.NoSerialize;
|
||||
}
|
||||
else
|
||||
{
|
||||
column.IsIgnore = true;
|
||||
column.NoSerialize = sugarColumn.NoSerialize;
|
||||
}
|
||||
}
|
||||
if (this.Context.MappingColumns.HasValue())
|
||||
|
@@ -30,5 +30,6 @@ namespace SqlSugar
|
||||
public bool IsTranscoding { get; set; }
|
||||
public string SerializeDateTimeFormat { get; set; }
|
||||
public bool IsJson { get; set; }
|
||||
public bool NoSerialize { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -246,7 +246,7 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
var isSugar = this.Context.EntityMaintenance.GetEntityInfo(type).Columns.Any(it=>it.SerializeDateTimeFormat.HasValue());
|
||||
var isSugar = this.Context.EntityMaintenance.GetEntityInfo(type).Columns.Any(it=>it.NoSerialize || it.SerializeDateTimeFormat.HasValue());
|
||||
if (isSugar)
|
||||
{
|
||||
return Context.CurrentConnectionConfig.ConfigureExternalServices.SerializeService.SugarSerializeObject(value);
|
||||
|
Reference in New Issue
Block a user