Update Join bug

This commit is contained in:
sunkaixuan 2023-05-06 16:32:19 +08:00
parent 8f072360c9
commit c28f78c906
3 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ namespace SqlSugar
public IUpdateable<T, T2, T3> InnerJoin<T3>(Expression<Func<T, T2, T3, bool>> joinExpress)
{
updateableObj.UpdateBuilder.Context.InitMappingInfo<T3>();
UpdateableProvider<T, T2,T3> result = new UpdateableProvider<T, T2,T3>();
result.updateableObj = updateableObj;
var joinIno = ((QueryableProvider<T>)updateableObj.UpdateBuilder.Context.Queryable<T>()).GetJoinInfo(joinExpress, JoinType.Inner);

View File

@ -22,6 +22,7 @@ namespace SqlSugar
public IUpdateable<T, T2, T3, T4> InnerJoin<T4>(Expression<Func<T, T2, T3, T4, bool>> joinExpress)
{
updateableObj.UpdateBuilder.Context.InitMappingInfo<T4>();
UpdateableProvider<T, T2, T3,T4> result = new UpdateableProvider<T, T2, T3,T4>();
result.updateableObj = updateableObj;
var joinIno = ((QueryableProvider<T>)updateableObj.UpdateBuilder.Context.Queryable<T>()).GetJoinInfo(joinExpress, JoinType.Inner);

View File

@ -21,6 +21,7 @@ namespace SqlSugar
public IUpdateable<T, T2, T3, T4> SetColumns(Expression<Func<T, T2, T3, T4, T>> columns)
{
updateableObj.UpdateBuilder.Context.InitMappingInfo<T4>();
var exp = ((columns as LambdaExpression).Body as MemberInitExpression).Bindings;
var items = ExpressionTool.GetMemberBindingItemList(exp);
var UpdateBuilder = updateableObj.UpdateBuilder;