From 41adeab6b0d5557ed415fc47994bb1cbac33b6d3 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 2 Apr 2023 11:31:26 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/InsertableProvider/InsertMethodInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertMethodInfo.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertMethodInfo.cs index 5c2e8064b..dfff07e7d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertMethodInfo.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertMethodInfo.cs @@ -38,7 +38,7 @@ namespace SqlSugar { if (Context == null) return 0; var inertable = MethodInfo.Invoke(Context, new object[] { objectValue }); - var result = inertable.GetType().GetMethod("ExecuteReturnIdentityAsync").Invoke(inertable, new object[] { }); + var result = inertable.GetType().GetMyMethod("ExecuteReturnIdentityAsync",0).Invoke(inertable, new object[] { }); return await (Task)result; } }