Update Insert by dictionary

This commit is contained in:
sunkaixuan 2023-02-03 04:50:09 +08:00
parent 9a41c9d487
commit 870828e540

View File

@ -179,6 +179,10 @@ namespace SqlSugar
PropertyType = column.Value == null ? DBNull.Value.GetType() : UtilMethods.GetUnderType(column.Value.GetType()),
TableId = i
};
if (columnInfo.PropertyType?.FullName == "System.Text.Json.JsonElement")
{
columnInfo.Value = column.Value.ObjToString();
}
if (columnInfo.PropertyType.IsEnum())
{
if (this.Context.CurrentConnectionConfig.MoreSettings?.TableEnumIsString == true)