mirror of
				https://gitee.com/dotnetchina/SqlSugar.git
				synced 2025-10-31 16:36:50 +08:00 
			
		
		
		
	Synchronization code
This commit is contained in:
		| @@ -45,6 +45,10 @@ namespace SqlSugar | ||||
|         } | ||||
|         public UpdateCommonMethodInfo IgnoreColumns(params string[] ignoreColumns) | ||||
|         { | ||||
|             if (Context == null)  | ||||
|             { | ||||
|                 return new UpdateCommonMethodInfo(); | ||||
|             } | ||||
|             var inertable = MethodInfo.Invoke(Context, new object[] { objectValue }); | ||||
|             var newMethod = inertable.GetType().GetMyMethod("IgnoreColumns", 1,typeof(string[])); | ||||
|             var result = newMethod.Invoke(inertable, new object[] { ignoreColumns }); | ||||
|   | ||||
| @@ -225,6 +225,11 @@ namespace SqlSugar | ||||
|             result.updateableObj.UpdateBuilder.ShortName = joinExpress.Parameters.FirstOrDefault()?.Name; | ||||
|             return result; | ||||
|         } | ||||
|         public IUpdateable<T, T2> InnerJoin<T2>(ISugarQueryable<T> queryable, Expression<Func<T, T2, bool>> joinExpress)  | ||||
|         { | ||||
|             var tableName=$" ({queryable.Clone().ToSqlString()}) ";; | ||||
|             return this.InnerJoin(joinExpress, tableName); | ||||
|         } | ||||
|         public IUpdateable<T, T2> InnerJoin<T2>(Expression<Func<T, T2, bool>> joinExpress,string TableName) | ||||
|         { | ||||
|             UpdateableProvider<T, T2> result = new UpdateableProvider<T, T2>(); | ||||
|   | ||||
| @@ -119,6 +119,7 @@ namespace SqlSugar | ||||
|         IUpdateable<T> Clone(); | ||||
|         IUpdateable<T,T2> InnerJoin<T2>(Expression<Func<T,T2,bool>> joinExpress); | ||||
|         IUpdateable<T, T2> InnerJoin<T2>(Expression<Func<T, T2, bool>> joinExpress,string tableName); | ||||
|         IUpdateable<T, T2> InnerJoin<T2>(ISugarQueryable<T> queryable,Expression<Func<T, T2, bool>> joinExpress); | ||||
|         UpdateablePage<T> PageSize(int pageSize); | ||||
|         IUpdateable<T> In(object[] ids); | ||||
|         ParameterUpdateable<T> UseParameter(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunkaixuan
					sunkaixuan