Example #1
0
 public static IEnumerable <T> Select <T>(this IDbConnection con, object whereObject, IDbTransaction trn = null, bool buffered = true, int?timeout = 0, CommandType?commandType = null, DMLOptions options = null)
 {
     return(con.Query <T>(Statements <T> .GetSelect(whereObject, options), ToParamObject(whereObject, options), trn, buffered, timeout, commandType));
 }
Example #2
0
 public static T SelectSingle <T>(this IDbConnection con, object whereObject, IDbTransaction trn = null, bool buffered = true, int?timeout = 0, CommandType?commandType = null, DMLOptions options = null)
 {
     return(con.Query <T>(Statements <T> .GetSelect(whereObject, options), whereObject, trn, buffered, timeout, commandType).FirstOrDefault());
 }
Example #3
0
 public static IEnumerable <T> Select <T>(this IDbConnection con, DMLOptions options = null)
 {
     return(con.Query <T>(Statements <T> .GetSelect(options)));
 }
 public static IEnumerable <T> Select <T>(this IDbConnection con)
 {
     return(con.Query <T>(Statements <T> .GetSelect()));
 }