Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
0f180cd354
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavOneToMany.cs

2
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<object>().SqlBuilder.ConditionalModelToSql(conditionalModels);
this._Context.Updateable<object>()

2
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<object>().SqlBuilder.ConditionalModelToSql(conditionalModels);
this._Context.Updateable<object>()

Loading…
Cancel
Save