mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-26 05:32:53 +08:00
Update rep.CopyNew()
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user