コード例 #1
0
ファイル: DMLExtensions.cs プロジェクト: pstelios/bUtility
 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));
 }
コード例 #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());
 }
コード例 #3
0
ファイル: DMLExtensions.cs プロジェクト: pstelios/bUtility
 public static IEnumerable <T> Select <T>(this IDbConnection con, DMLOptions options = null)
 {
     return(con.Query <T>(Statements <T> .GetSelect(options)));
 }
コード例 #4
0
 public static IEnumerable <T> Select <T>(this IDbConnection con)
 {
     return(con.Query <T>(Statements <T> .GetSelect()));
 }