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()