@@ -247,7 +247,7 @@ public static long RowCount(this IDbConnection dbConn, string sql)
247
247
/// Returns results with references from using a LINQ Expression. E.g:
248
248
/// <para>db.LoadSelect<Person>(x => x.Age > 40)</para>
249
249
/// </summary>
250
- public static List < T > LoadSelect < T > ( this IDbConnection dbConn , Expression < Func < T , bool > > predicate , IEnumerable < string > include = null )
250
+ public static List < T > LoadSelect < T > ( this IDbConnection dbConn , Expression < Func < T , bool > > predicate , string [ ] include = null )
251
251
{
252
252
return dbConn . Exec ( dbCmd => dbCmd . LoadSelect ( predicate , include ) ) ;
253
253
}
@@ -265,7 +265,16 @@ public static List<T> LoadSelect<T>(this IDbConnection dbConn, Expression<Func<T
265
265
/// Returns results with references from using an SqlExpression lambda. E.g:
266
266
/// <para>db.LoadSelect(db.From<Person>().Where(x => x.Age > 40))</para>
267
267
/// </summary>
268
- public static List < T > LoadSelect < T > ( this IDbConnection dbConn , SqlExpression < T > expression = null , IEnumerable < string > include = null )
268
+ public static List < T > LoadSelect < T > ( this IDbConnection dbConn , SqlExpression < T > expression = null , string [ ] include = null )
269
+ {
270
+ return dbConn . Exec ( dbCmd => dbCmd . LoadSelect ( expression , include ) ) ;
271
+ }
272
+
273
+ /// <summary>
274
+ /// Returns results with references from using an SqlExpression lambda. E.g:
275
+ /// <para>db.LoadSelect(db.From<Person>().Where(x => x.Age > 40), include:q.OnlyFields)</para>
276
+ /// </summary>
277
+ public static List < T > LoadSelect < T > ( this IDbConnection dbConn , SqlExpression < T > expression , IEnumerable < string > include )
269
278
{
270
279
return dbConn . Exec ( dbCmd => dbCmd . LoadSelect ( expression , include ) ) ;
271
280
}
@@ -282,7 +291,15 @@ public static List<T> LoadSelect<T>(this IDbConnection dbConn, SqlExpression<T>
282
291
/// <summary>
283
292
/// Project results with references from a number of joined tables into a different model
284
293
/// </summary>
285
- public static List < Into > LoadSelect < Into , From > ( this IDbConnection dbConn , SqlExpression < From > expression , IEnumerable < string > include = null )
294
+ public static List < Into > LoadSelect < Into , From > ( this IDbConnection dbConn , SqlExpression < From > expression , string [ ] include = null )
295
+ {
296
+ return dbConn . Exec ( dbCmd => dbCmd . LoadSelect < Into , From > ( expression , include ) ) ;
297
+ }
298
+
299
+ /// <summary>
300
+ /// Project results with references from a number of joined tables into a different model
301
+ /// </summary>
302
+ public static List < Into > LoadSelect < Into , From > ( this IDbConnection dbConn , SqlExpression < From > expression , IEnumerable < string > include )
286
303
{
287
304
return dbConn . Exec ( dbCmd => dbCmd . LoadSelect < Into , From > ( expression , include ) ) ;
288
305
}
0 commit comments