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)); }
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()); }
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())); }