Browse Source

Synchronization code

pull/32/head
sunkaixuan 2 years ago
parent
commit
7cf149e168
  1. 1
      Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT2.cs
  2. 1
      Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT3.cs
  3. 1
      Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT4.cs

1
Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT2.cs

@ -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);

1
Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT3.cs

@ -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);

1
Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProviderT4.cs

@ -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…
Cancel
Save