mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
Update Join bug
This commit is contained in:
parent
8f072360c9
commit
c28f78c906
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user