@ -73,6 +73,7 @@ namespace SqlSugar
{
var queryable = this . Context . Queryable < object > ( ) . Select < T > ( ) . WithCacheIF ( IsCache , CacheTime ) ;
CopyQueryBuilder ( queryable . QueryBuilder ) ;
( ( QueryableProvider < T > ) queryable ) . CacheKey = this . CacheKey ;
( ( QueryableProvider < T > ) queryable ) . MapperAction = this . MapperAction ;
( ( QueryableProvider < T > ) queryable ) . MapperActionWithCache = this . MapperActionWithCache ;
( ( QueryableProvider < T > ) queryable ) . Mappers = this . Mappers ;
@ -199,7 +200,7 @@ namespace SqlSugar
public virtual ISugarQueryable < T > Mapper ( Action < T , MapperCache < T > > mapperAction )
{
this . MapperActionWithCache = mapperAction ;
this . MapperActionWithCache + = mapperAction ;
return this ;
}
public ISugarQueryable < T > Mapper < TObject > ( Expression < Func < T , TObject > > mapperObject , Expression < Func < T , object > > mainField , Expression < Func < T , object > > childField )
@ -2765,6 +2766,12 @@ namespace SqlSugar
QueryBuilder . IsDistinct = true ;
return this ;
}
public new ISugarQueryable < T , T2 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
#endregion
}
#endregion
@ -3062,6 +3069,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 > ( ( t , t2 , t3 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -3491,6 +3503,11 @@ namespace SqlSugar
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 > ( ( t , t2 , t3 , t4 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -3882,6 +3899,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 > ( ( t , t2 , t3 , t4 , t5 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -4309,6 +4331,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 > ( ( t , t2 , t3 , t4 , t5 , T6 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -4727,6 +4754,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -5178,6 +5210,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 , t8 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -5578,6 +5615,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 , t8 , t9 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -5989,6 +6031,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 , t8 , t9 , t10 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -6424,6 +6471,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 , t8 , t9 , t10 , t11 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;
@ -6885,6 +6937,11 @@ namespace SqlSugar
#endregion
#region Other
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Take ( int num )
{
QueryBuilder . Take = num ;
return this ;
}
public new ISugarQueryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Clone ( )
{
var queryable = this . Context . Queryable < T , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( ( t , t2 , t3 , t4 , t5 , T6 , t7 , t8 , t9 , t10 , t11 , t12 ) = > new object [ ] { } ) . WithCacheIF ( IsCache , CacheTime ) ;