Beispiel #1
0
 public T ExecuteScalar <T>(string sql, dynamic param = null)
 {
     return(SqlMapper.ExecuteScalar <T>(connection, sql, param as object, transaction, commandTimeout: this.commandTimeout));
 }
Beispiel #2
0
 public static T ExecuteScalar <T>(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int?commandTimeout = null, CommandType?commandType = null)
 {
     TRACE(sql);
     return(SqlMapper.ExecuteScalar <T>(cnn, sql, param, transaction, commandTimeout, commandType));
 }