mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Updateable.InnerJoin(IQueryable,exp)
This commit is contained in:
parent
e229a5e974
commit
d5202602e7
@ -45,6 +45,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public UpdateCommonMethodInfo IgnoreColumns(params string[] ignoreColumns)
|
public UpdateCommonMethodInfo IgnoreColumns(params string[] ignoreColumns)
|
||||||
{
|
{
|
||||||
|
if (Context == null)
|
||||||
|
{
|
||||||
|
return new UpdateCommonMethodInfo();
|
||||||
|
}
|
||||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||||
var newMethod = inertable.GetType().GetMyMethod("IgnoreColumns", 1,typeof(string[]));
|
var newMethod = inertable.GetType().GetMyMethod("IgnoreColumns", 1,typeof(string[]));
|
||||||
var result = newMethod.Invoke(inertable, new object[] { ignoreColumns });
|
var result = newMethod.Invoke(inertable, new object[] { ignoreColumns });
|
||||||
|
@ -225,6 +225,11 @@ namespace SqlSugar
|
|||||||
result.updateableObj.UpdateBuilder.ShortName = joinExpress.Parameters.FirstOrDefault()?.Name;
|
result.updateableObj.UpdateBuilder.ShortName = joinExpress.Parameters.FirstOrDefault()?.Name;
|
||||||
return result;
|
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)
|
public IUpdateable<T, T2> InnerJoin<T2>(Expression<Func<T, T2, bool>> joinExpress,string TableName)
|
||||||
{
|
{
|
||||||
UpdateableProvider<T, T2> result = new UpdateableProvider<T, T2>();
|
UpdateableProvider<T, T2> result = new UpdateableProvider<T, T2>();
|
||||||
|
@ -119,6 +119,7 @@ namespace SqlSugar
|
|||||||
IUpdateable<T> Clone();
|
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);
|
||||||
IUpdateable<T, T2> InnerJoin<T2>(Expression<Func<T, T2, bool>> joinExpress,string tableName);
|
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);
|
UpdateablePage<T> PageSize(int pageSize);
|
||||||
IUpdateable<T> In(object[] ids);
|
IUpdateable<T> In(object[] ids);
|
||||||
ParameterUpdateable<T> UseParameter();
|
ParameterUpdateable<T> UseParameter();
|
||||||
|
Loading…
Reference in New Issue
Block a user