mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update Insert by dictionary
This commit is contained in:
parent
9a41c9d487
commit
870828e540
@ -179,6 +179,10 @@ namespace SqlSugar
|
|||||||
PropertyType = column.Value == null ? DBNull.Value.GetType() : UtilMethods.GetUnderType(column.Value.GetType()),
|
PropertyType = column.Value == null ? DBNull.Value.GetType() : UtilMethods.GetUnderType(column.Value.GetType()),
|
||||||
TableId = i
|
TableId = i
|
||||||
};
|
};
|
||||||
|
if (columnInfo.PropertyType?.FullName == "System.Text.Json.JsonElement")
|
||||||
|
{
|
||||||
|
columnInfo.Value = column.Value.ObjToString();
|
||||||
|
}
|
||||||
if (columnInfo.PropertyType.IsEnum())
|
if (columnInfo.PropertyType.IsEnum())
|
||||||
{
|
{
|
||||||
if (this.Context.CurrentConnectionConfig.MoreSettings?.TableEnumIsString == true)
|
if (this.Context.CurrentConnectionConfig.MoreSettings?.TableEnumIsString == true)
|
||||||
|
Loading…
Reference in New Issue
Block a user