mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
-
This commit is contained in:
@@ -12,6 +12,11 @@ namespace SqlSugar
|
|||||||
this.RemoveAll(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
|
this.RemoveAll(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
this.Add(new MappingTable() { EntityName = entityName, DbTableName = dbTableName });
|
this.Add(new MappingTable() { EntityName = entityName, DbTableName = dbTableName });
|
||||||
}
|
}
|
||||||
|
public void Add(string entityName, string dbTableName,string dbTableShortName)
|
||||||
|
{
|
||||||
|
this.RemoveAll(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
|
this.Add(new MappingTable() { EntityName = entityName, DbTableName = dbTableName, DbShortTaleName =dbTableShortName});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MappingColumnList: List<MappingColumn>
|
public class MappingColumnList: List<MappingColumn>
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ namespace SqlSugar
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected List<JoinQueryInfo> GetJoinInfos(Expression joinExpression, SqlSugarClient context)
|
protected List<JoinQueryInfo> GetJoinInfos(Expression joinExpression, SqlSugarClient context,params Type [] entityTypeArray)
|
||||||
{
|
{
|
||||||
ExpressionContext exp = new ExpressionContext();
|
ExpressionContext exp = new ExpressionContext();
|
||||||
exp.Resolve(joinExpression, ResolveExpressType.Join);
|
exp.Resolve(joinExpression, ResolveExpressType.Join);
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ namespace SqlSugar
|
|||||||
public virtual ISugarQueryable<T> Queryable<T, T2>(Expression<Func<T,T2,object []>> joinExpression) where T : class, new()
|
public virtual ISugarQueryable<T> Queryable<T, T2>(Expression<Func<T,T2,object []>> joinExpression) where T : class, new()
|
||||||
{
|
{
|
||||||
var queryable = Queryable<T>();
|
var queryable = Queryable<T>();
|
||||||
SqlBuilder.LambadaQueryBuilder.JoinQueryInfos = base.GetJoinInfos(joinExpression,this);
|
SqlBuilder.LambadaQueryBuilder.JoinQueryInfos = base.GetJoinInfos(joinExpression,this,typeof(T), typeof(T2));
|
||||||
return queryable;
|
return queryable;
|
||||||
}
|
}
|
||||||
public virtual ISugarQueryable<T> Queryable<T, T2, T3>(Func<T, T2,T3, object[]> joinExpression) where T : class, new()
|
public virtual ISugarQueryable<T> Queryable<T, T2, T3>(Func<T, T2,T3, object[]> joinExpression) where T : class, new()
|
||||||
|
|||||||
Reference in New Issue
Block a user