Merge pull request 'BUG:数据如果带双引号会出错' (#288) from koy07555/Admin.NET.Pro:种子数据生成BUG into v2
Reviewed-on: https://code.adminnet.top/Admin.NET/Admin.NET.Pro/pulls/288
This commit is contained in:
commit
e2fec298d2
@ -483,7 +483,7 @@ public class SysDatabaseService : IDynamicApiController, ITransient
|
||||
if (value == null) value = "null";
|
||||
else if (propType == typeof(string))
|
||||
{
|
||||
value = $"@\"{value}\"";
|
||||
value = $"@\"{value.ToString().Replace("\"", "\"\"")}\"";
|
||||
}
|
||||
else if (propType.IsEnum)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user