mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Join BUG
This commit is contained in:
parent
05d70da126
commit
50f15f837a
@ -48,6 +48,7 @@ namespace SqlSugar
|
||||
}
|
||||
public ISugarQueryable<T, T2> LeftJoin<T2>(Expression<Func<T, T2, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T2>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -57,6 +58,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2> InnerJoin<T2>(Expression<Func<T, T2, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T2>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -2492,6 +2494,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2,T3> LeftJoin<T3>(Expression<Func<T, T2,T3, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T3>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2,T3>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -2501,6 +2504,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2,T3> InnerJoin<T3>(Expression<Func<T, T2,T3, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T3>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2,T3>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -2839,6 +2843,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3,T4> LeftJoin<T4>(Expression<Func<T, T2, T3,T4, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T4>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3,T4>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -2848,6 +2853,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3,T4> InnerJoin<T4>(Expression<Func<T, T2, T3,T4, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T4>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3,T4>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -3249,6 +3255,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5> LeftJoin<T5>(Expression<Func<T, T2, T3, T4,T5, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T5>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -3258,6 +3265,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5> InnerJoin<T5>(Expression<Func<T, T2, T3, T4, T5, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T5>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -3701,6 +3709,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6> LeftJoin<T6>(Expression<Func<T, T2, T3, T4, T5,T6, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T6>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -3710,6 +3719,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6> InnerJoin<T6>(Expression<Func<T, T2, T3, T4, T5, T6, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T6>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -4115,6 +4125,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7> LeftJoin<T7>(Expression<Func<T, T2, T3, T4, T5, T6,T7, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T7>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -4124,6 +4135,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7> InnerJoin<T7>(Expression<Func<T, T2, T3, T4, T5, T6, T7, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T7>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -4564,6 +4576,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8> LeftJoin<T8>(Expression<Func<T, T2, T3, T4, T5, T6, T7,T8, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T8>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -4573,6 +4586,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8> InnerJoin<T8>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T8>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5004,6 +5018,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> LeftJoin<T9>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8,T9, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T9>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5013,6 +5028,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> InnerJoin<T9>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T9>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5477,6 +5493,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9,T10> LeftJoin<T10>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T10>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5486,6 +5503,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> InnerJoin<T10>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T10>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5886,6 +5904,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> LeftJoin<T11>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10,T11, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T11>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -5895,6 +5914,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> InnerJoin<T11>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T11>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -6319,6 +6339,7 @@ namespace SqlSugar
|
||||
{
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> LeftJoin<T12>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,T12, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T12>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
@ -6328,6 +6349,7 @@ namespace SqlSugar
|
||||
|
||||
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> InnerJoin<T12>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> joinExpression)
|
||||
{
|
||||
this.Context.InitMappingInfo<T12>();
|
||||
var result = InstanceFactory.GetQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this.Context.CurrentConnectionConfig);
|
||||
result.SqlBuilder = this.SqlBuilder;
|
||||
result.Context = this.Context;
|
||||
|
Loading…
Reference in New Issue
Block a user