@@ -46,6 +46,8 @@ public abstract partial class SqlExpression<T> : ISqlExpression, IHasUntypedSqlE
46
46
public List < IDbDataParameter > Params { get ; set ; }
47
47
public Func < string , string > SqlFilter { get ; set ; }
48
48
public static Action < SqlExpression < T > > SelectFilter { get ; set ; }
49
+ public int ? Rows { get ; set ; }
50
+ public int ? Offset { get ; set ; }
49
51
50
52
protected string Sep => sep ;
51
53
@@ -70,24 +72,30 @@ public SqlExpression<T> Clone()
70
72
71
73
protected virtual SqlExpression < T > CopyTo ( SqlExpression < T > to )
72
74
{
75
+ to . visitedExpressionIsTableColumn = visitedExpressionIsTableColumn ;
76
+ to . skipParameterizationForThisExpression = skipParameterizationForThisExpression ;
73
77
to . underlyingExpression = underlyingExpression ;
74
78
to . orderByProperties = orderByProperties ;
75
79
to . selectExpression = selectExpression ;
76
- to . selectDistinct = selectDistinct ;
77
- to . CustomSelect = CustomSelect ;
78
80
to . fromExpression = fromExpression ;
79
81
to . whereExpression = whereExpression ;
80
82
to . groupBy = groupBy ;
81
83
to . havingExpression = havingExpression ;
82
84
to . orderBy = orderBy ;
83
- to . OnlyFields = OnlyFields != null ? new HashSet < string > ( OnlyFields ) : null ;
85
+ to . OnlyFields = OnlyFields != null ? new HashSet < string > ( OnlyFields , StringComparer . OrdinalIgnoreCase ) : null ;
84
86
to . UpdateFields = UpdateFields ;
85
87
to . InsertFields = InsertFields ;
88
+ to . useFieldName = useFieldName ;
89
+ to . selectDistinct = selectDistinct ;
90
+ to . CustomSelect = CustomSelect ;
86
91
to . modelDef = modelDef ;
87
92
to . PrefixFieldWithTableName = PrefixFieldWithTableName ;
88
93
to . WhereStatementWithoutWhereString = WhereStatementWithoutWhereString ;
89
94
to . Params = new List < IDbDataParameter > ( Params ) ;
90
95
to . SqlFilter = SqlFilter ;
96
+ to . Offset = Offset ;
97
+ to . Rows = Rows ;
98
+ to . tableDefs = tableDefs ;
91
99
return to ;
92
100
}
93
101
@@ -1213,9 +1221,6 @@ public string OrderByExpression
1213
1221
}
1214
1222
}
1215
1223
1216
- public int ? Rows { get ; set ; }
1217
- public int ? Offset { get ; set ; }
1218
-
1219
1224
public ModelDefinition ModelDef
1220
1225
{
1221
1226
get
0 commit comments