From 0f180cd3544a6a6c6c46c870f4574429bd7cc737 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 24 Jun 2023 15:30:37 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs | 2 +- .../SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs index 4ed6300b1..200e41dbd 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs @@ -59,7 +59,7 @@ namespace SqlSugar FieldName = thisFkColumn.DbColumnName, FieldValue = string.Join(",", ids.Distinct()), ConditionalType = ConditionalType.In, - CSharpTypeName = thisFkColumn.PropertyName + CSharpTypeName = thisFkColumn?.PropertyInfo?.PropertyType?.Name }); var sqlObj = _Context.Queryable().SqlBuilder.ConditionalModelToSql(conditionalModels); this._Context.Updateable() diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs index 4ed6300b1..200e41dbd 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs @@ -59,7 +59,7 @@ namespace SqlSugar FieldName = thisFkColumn.DbColumnName, FieldValue = string.Join(",", ids.Distinct()), ConditionalType = ConditionalType.In, - CSharpTypeName = thisFkColumn.PropertyName + CSharpTypeName = thisFkColumn?.PropertyInfo?.PropertyType?.Name }); var sqlObj = _Context.Queryable().SqlBuilder.ConditionalModelToSql(conditionalModels); this._Context.Updateable()