Update rep.CopyNew()

This commit is contained in:
sunkaixuan
2024-01-22 17:35:35 +08:00
parent f1691939ca
commit 0d840dd8ca

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
{