Synchronization code

This commit is contained in:
sunkaixuan
2024-01-22 17:38:25 +08:00
parent 0d840dd8ca
commit 0670e7a136
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugar</id>
<version>5.1.4.137</version>
<version>5.1.4.138-preview01</version>
<title>.Net Framework 安装此版本, 5.0.3.3-max 最低要求 .Net Framework 4.6 | 5.0.0.2-5.0.3.2 最低要求 .Net Framework 4.5 | 4.0-4.9.11 最低要求 .Net Framework 4.0+ .NET ORM </title>
<authors>sun kaixuan</authors>
<owners>landa</owners>

View File

@@ -58,7 +58,9 @@ namespace SqlSugar
object o = null;
if (isAnyParamter)
{
o = Activator.CreateInstance(type, new string[] { null });
object[] pars= type.GetConstructors().First().GetParameters()
.Select(it=>(object)null).ToArray();
o = Activator.CreateInstance(type, pars);
}
else
{