mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 04:13:48 +08:00
Synchronization code
This commit is contained in:
parent
d243ccf5f3
commit
4db4934a9a
@ -51,6 +51,10 @@ namespace SqlSugar
|
||||
}
|
||||
this.Context.RefreshMapping();
|
||||
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} ",
|
||||
this.Context.GetTranslationColumnName(parameter.Name),
|
||||
tableName,
|
||||
|
@ -51,6 +51,10 @@ namespace SqlSugar
|
||||
}
|
||||
this.Context.RefreshMapping();
|
||||
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} ",
|
||||
this.Context.GetTranslationColumnName(parameter.Name),
|
||||
tableName,
|
||||
|
@ -17,11 +17,23 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
|
@ -17,6 +17,14 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -68,6 +76,14 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -115,6 +131,14 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -162,6 +186,15 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -205,6 +238,15 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -244,6 +286,14 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
@ -448,6 +498,14 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user