mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +08:00
Synchronization code
This commit is contained in:
parent
d243ccf5f3
commit
4db4934a9a
@ -51,6 +51,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
this.Context.RefreshMapping();
|
this.Context.RefreshMapping();
|
||||||
var tableName= Context.GetTranslationTableName(parameter.Type.Name, true);
|
var tableName= Context.GetTranslationTableName(parameter.Type.Name, true);
|
||||||
|
if (exp.Arguments.Count == 2 && exp.Arguments.Last().HasValue())
|
||||||
|
{
|
||||||
|
tableName = Context.GetTranslationTableName(ExpressionTool.DynamicInvoke(exp.Arguments.Last()) + "");
|
||||||
|
}
|
||||||
var joinString =string.Format(" {2} INNER JOIN {1} {0} ",
|
var joinString =string.Format(" {2} INNER JOIN {1} {0} ",
|
||||||
this.Context.GetTranslationColumnName(parameter.Name),
|
this.Context.GetTranslationColumnName(parameter.Name),
|
||||||
tableName,
|
tableName,
|
||||||
|
@ -51,6 +51,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
this.Context.RefreshMapping();
|
this.Context.RefreshMapping();
|
||||||
var tableName= Context.GetTranslationTableName(parameter.Type.Name, true);
|
var tableName= Context.GetTranslationTableName(parameter.Type.Name, true);
|
||||||
|
if (exp.Arguments.Count == 2 && exp.Arguments.Last().HasValue())
|
||||||
|
{
|
||||||
|
tableName=Context.GetTranslationTableName(ExpressionTool.DynamicInvoke(exp.Arguments.Last())+"");
|
||||||
|
}
|
||||||
var joinString =string.Format(" {2} LEFT JOIN {1} {0} ",
|
var joinString =string.Format(" {2} LEFT JOIN {1} {0} ",
|
||||||
this.Context.GetTranslationColumnName(parameter.Name),
|
this.Context.GetTranslationColumnName(parameter.Name),
|
||||||
tableName,
|
tableName,
|
||||||
|
@ -17,11 +17,23 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T, JoinType>();
|
return new Subqueryable<T, JoinType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Subqueryable<T, JoinType> InnerJoin<JoinType>(Func<T, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T, JoinType>();
|
||||||
|
}
|
||||||
|
|
||||||
public Subqueryable<T, JoinType> LeftJoin<JoinType>(Func<T, JoinType, bool> expression)
|
public Subqueryable<T, JoinType> LeftJoin<JoinType>(Func<T, JoinType, bool> expression)
|
||||||
{
|
{
|
||||||
return new Subqueryable<T, JoinType>();
|
return new Subqueryable<T, JoinType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Subqueryable<T, JoinType> LeftJoin<JoinType>(Func<T, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T, JoinType>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Subqueryable<T> Where(string where)
|
public Subqueryable<T> Where(string where)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
|
@ -17,6 +17,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType>();
|
||||||
}
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, T9> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -68,6 +76,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType>();
|
||||||
}
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, T8, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, T8, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7, T8> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -115,6 +131,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType>();
|
||||||
}
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, T7, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, T7, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4, T5, T6, T7> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -162,6 +186,15 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, T5, T6, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, JoinType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, T6, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, T5, T6, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, T6, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4, T5, T6> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4, T5, T6> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -205,6 +238,15 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, T5, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, T5, JoinType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, T5, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, T5, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, T5, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, T5, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4, T5> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4, T5> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -244,6 +286,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, T3, T4, JoinType>();
|
return new Subqueryable<T1, T2, T3, T4, JoinType>();
|
||||||
}
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, JoinType> InnerJoin<JoinType>(Func<T1, T2, T3, T4, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, T3, T4, JoinType> LeftJoin<JoinType>(Func<T1, T2, T3, T4, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, T3, T4, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2, T3, T4> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2, T3, T4> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -448,6 +498,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return new Subqueryable<T1, T2, JoinType>();
|
return new Subqueryable<T1, T2, JoinType>();
|
||||||
}
|
}
|
||||||
|
public Subqueryable<T1, T2, JoinType> InnerJoin<JoinType>(Func<T1, T2, JoinType, bool> expression,string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, JoinType>();
|
||||||
|
}
|
||||||
|
public Subqueryable<T1, T2, JoinType> LeftJoin<JoinType>(Func<T1, T2, JoinType, bool> expression, string tableName)
|
||||||
|
{
|
||||||
|
return new Subqueryable<T1, T2, JoinType>();
|
||||||
|
}
|
||||||
public new Subqueryable<T1, T2> Where(Func<T1, bool> expression)
|
public new Subqueryable<T1, T2> Where(Func<T1, bool> expression)
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
Reference in New Issue
Block a user