From 8916196cf2e1f17e22db217cee8677fb422d4317 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Fri, 15 Apr 2022 14:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AAclone?= =?UTF-8?q?=E6=97=B6=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/ObjectExtend.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Falcon.SugarApi/ObjectExtend.cs b/Falcon.SugarApi/ObjectExtend.cs index 805881b..f0d08d4 100644 --- a/Falcon.SugarApi/ObjectExtend.cs +++ b/Falcon.SugarApi/ObjectExtend.cs @@ -22,7 +22,7 @@ namespace Falcon.SugarApi join t in target.GetType().GetProperties() on s.Name equals t.Name select new { s, t }; foreach (var item in all) { - item.t.SetValue(target, Convert.ChangeType(item.s.GetValue(source), item.s.PropertyType)); + item.t.SetValue(target, Convert.ChangeType(item.s.GetValue(source), item.t.PropertyType)); } return source; }